Enhanced material design 3 implementation
This commit is contained in:
+24
-4
@@ -114,19 +114,39 @@ void showAwesomeSnackBar(
|
||||
}
|
||||
|
||||
void showSuccessSnackBar(BuildContext context, String message) {
|
||||
showSuccessSnackBarGlobal(message);
|
||||
showAwesomeSnackBar(
|
||||
context,
|
||||
title: 'Success',
|
||||
message: message,
|
||||
snackType: SnackType.success,
|
||||
);
|
||||
}
|
||||
|
||||
void showErrorSnackBar(BuildContext context, String message) {
|
||||
showErrorSnackBarGlobal(message);
|
||||
showAwesomeSnackBar(
|
||||
context,
|
||||
title: 'Error',
|
||||
message: message,
|
||||
snackType: SnackType.error,
|
||||
);
|
||||
}
|
||||
|
||||
void showInfoSnackBar(BuildContext context, String message) {
|
||||
showInfoSnackBarGlobal(message);
|
||||
showAwesomeSnackBar(
|
||||
context,
|
||||
title: 'Info',
|
||||
message: message,
|
||||
snackType: SnackType.info,
|
||||
);
|
||||
}
|
||||
|
||||
void showWarningSnackBar(BuildContext context, String message) {
|
||||
showWarningSnackBarGlobal(message);
|
||||
showAwesomeSnackBar(
|
||||
context,
|
||||
title: 'Warning',
|
||||
message: message,
|
||||
snackType: SnackType.warning,
|
||||
);
|
||||
}
|
||||
|
||||
/// Global helpers that use the app-level `scaffoldMessengerKey` directly.
|
||||
|
||||
Reference in New Issue
Block a user