Created
October 27, 2024 23:42
-
-
Save VB10/c77214b05321a10ff68ce1161e3e1d98 to your computer and use it in GitHub Desktop.
Success snackbar
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// Show success snack bar | |
/// Message: [LocaleKeys.message_saveOnSuccess] | |
final class SuccessSnackBar extends SnackBar { | |
SuccessSnackBar({super.key}) | |
: super(content: Text(LocaleKeys.message_saveOnSuccess.tr())); | |
static void show(BuildContext context) { | |
ScaffoldMessenger.of(context).showSnackBar( | |
SuccessSnackBar(), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment