okBanner function
void
okBanner(
- String message, {
- String title = 'Listo',
- BuildContext? context,
- bool isTesting = false,
Implementation
void okBanner(
final String message, {
final String title = 'Listo',
final BuildContext? context,
final bool isTesting = false,
}) =>
!isTesting
? (ScaffoldMessenger.of(context ?? gContext)
..hideCurrentMaterialBanner()
..showMaterialBanner(
MaterialBanner(
content: AwesomeSnackbarContent(
title: title,
message: message,
contentType: ContentType.success,
inMaterialBanner: true,
),
actions: const [SizedBox.shrink()],
elevation: 0,
backgroundColor: const Color.fromRGBO(0, 0, 0, 0),
forceActionsBelow: true,
),
))
: {};