showSimpleToast function
- String message
Shows a toast with the given message
for a short duration at the bottom
of the screen with a black background and white text.
Implementation
void showSimpleToast(final String message) {
toastification.show(
style: ToastificationStyle.simple,
title: Text(message),
alignment: Alignment.bottomCenter,
autoCloseDuration: const Duration(
seconds: AppConstants.toastDurationInSeconds,
),
padding: const EdgeInsets.all(AppConstants.padding),
backgroundColor: AppRouter.theme.surface,
foregroundColor: AppRouter.theme.onSurface,
borderRadius: BorderRadius.circular(AppConstants.inBorderRadius),
closeButton: const ToastCloseButton(showType: CloseButtonShowType.none),
borderSide: BorderSide(
strokeAlign: BorderSide.strokeAlignCenter,
color: AppRouter.theme.outline.withAlpha(0x80),
),
dragToClose: true,
pauseOnHover: true,
);
}