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);
/// 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.
static const int roundViewDelay = 600;
static const int kRoundViewDelay = 600;
/// 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.
static const int kKeyboardDelay = 300;

View File

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

View File

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

View File

@@ -245,7 +245,7 @@ class _MainMenuViewState extends State<MainMenuView> {
BadRatingDialogDecision badRatingDecision = BadRatingDialogDecision.cancel;
// 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) {
case PreRatingDialogDecision.yes: