showGrockMaterialBanner method
void
showGrockMaterialBanner(
- String message, {
- Duration? duration,
- required String actionLabel,
- required VoidCallback action,
showMaterialBanner
method
Implementation
void showGrockMaterialBanner(
String message, {
Duration? duration,
required String actionLabel,
required VoidCallback action,
}) {
ScaffoldMessenger.of(context).showMaterialBanner(
MaterialBanner(
content: Text(message),
actions: [
TextButton(
child: Text(actionLabel),
onPressed: action,
),
],
),
);
}