Updated constant names

This commit is contained in:
2025-07-31 23:02:52 +02:00
parent a4befd5bb8
commit e201a26b6d
4 changed files with 7 additions and 7 deletions

View File

@@ -21,13 +21,13 @@ class Constants {
remindLaunches: 40); remindLaunches: 40);
/// Delay in milliseconds before a pop-up appears. /// Delay in milliseconds before a pop-up appears.
static const int popUpDelay = 300; static const int kPopUpDelay = 300;
/// Delay in milliseconds before the round view appears after the previous one is closed. /// Delay in milliseconds before the round view appears after the previous one is closed.
static const int roundViewDelay = 600; static const int kRoundViewDelay = 600;
/// Duration in milliseconds for the fade-in animation of texts. /// Duration in milliseconds for the fade-in animation of texts.
static const int fadeInDuration = 300; static const int kFadeInDuration = 300;
/// Duration in milliseconds for the keyboard to fully disappear. /// Duration in milliseconds for the keyboard to fully disappear.
static const int kKeyboardDelay = 300; static const int kKeyboardDelay = 300;

View File

@@ -472,7 +472,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
if (round != null && round >= 0) { if (round != null && round >= 0) {
WidgetsBinding.instance.addPostFrameCallback((_) async { WidgetsBinding.instance.addPostFrameCallback((_) async {
await Future.delayed( await Future.delayed(
const Duration(milliseconds: Constants.roundViewDelay)); const Duration(milliseconds: Constants.kRoundViewDelay));
if (context.mounted) { if (context.mounted) {
_openRoundView(context, round); _openRoundView(context, round);
} }
@@ -488,7 +488,7 @@ class _ActiveGameViewState extends State<ActiveGameView> {
confettiController.play(); confettiController.play();
await Future.delayed(const Duration(milliseconds: Constants.popUpDelay)); await Future.delayed(const Duration(milliseconds: Constants.kPopUpDelay));
if (context.mounted) { if (context.mounted) {
showCupertinoDialog( showCupertinoDialog(

View File

@@ -216,7 +216,7 @@ class _CreateGameViewState extends State<CreateGameView> {
? 1.0 ? 1.0
: 0.0, : 0.0,
duration: const Duration( duration: const Duration(
milliseconds: Constants.fadeInDuration), milliseconds: Constants.kFadeInDuration),
child: Padding( child: Padding(
padding: const EdgeInsets.only(right: 8.0), padding: const EdgeInsets.only(right: 8.0),
child: ReorderableDragStartListener( child: ReorderableDragStartListener(

View File

@@ -245,7 +245,7 @@ class _MainMenuViewState extends State<MainMenuView> {
BadRatingDialogDecision badRatingDecision = BadRatingDialogDecision.cancel; BadRatingDialogDecision badRatingDecision = BadRatingDialogDecision.cancel;
// so that the bad rating dialog is not shown immediately // so that the bad rating dialog is not shown immediately
await Future.delayed(const Duration(milliseconds: Constants.popUpDelay)); await Future.delayed(const Duration(milliseconds: Constants.kPopUpDelay));
switch (preRatingDecision) { switch (preRatingDecision) {
case PreRatingDialogDecision.yes: case PreRatingDialogDecision.yes: