showMessageNotification function
Implementation
void showMessageNotification(BuildContext context, String message) {
LocalNotificator.show(
context,
builder: (GlobalKey<LocalNotificationState> key, AsyncCallback onClose) => LocalNotification(
onClose: onClose,
key: key,
animation: AnimationType.fromBottom,
width: 300,
animationDuration: const Duration(milliseconds: 750),
notificationPosition: NotificationPosition.bottomLeft,
toastDuration: const Duration(seconds: 10),
closeButtonBuilder: (VoidCallback onClose) => Padding(
padding: const EdgeInsets.only(top: Gap.small, right: Gap.small),
child: Column(
children: [
IconButton(
onPressed: onClose,
color: context.theme.colorScheme.primary,
icon: const Icon(IconPack.mdi_close),
),
],
),
),
child: (_) => Padding(
padding: const EdgeInsets.all(Gap.regular),
child: KitText(text: message),
),
),
);
}