Implemented named constant

This commit is contained in:
2025-07-31 23:02:24 +02:00
parent 7fd5fab8c0
commit a4befd5bb8
2 changed files with 6 additions and 1 deletions

View File

@@ -28,4 +28,7 @@ class Constants {
/// Duration in milliseconds for the fade-in animation of texts.
static const int fadeInDuration = 300;
/// Duration in milliseconds for the keyboard to fully disappear.
static const int kKeyboardDelay = 300;
}

View File

@@ -298,7 +298,9 @@ class _CreateGameViewState extends State<CreateGameView> {
),
onPressed: () {
FocusScope.of(context).unfocus();
Future.delayed(const Duration(milliseconds: 300), () {
Future.delayed(
const Duration(
milliseconds: Constants.kKeyboardDelay), () {
_checkAllGameAttributes();
});
},