showInfoFlashbar method

Future<void> showInfoFlashbar({
  1. required String message,
  2. Duration duration = const Duration(seconds: 3),
})

Shows an info flashbar/toast with a customizable info message.

It uses the following theme values for styling:

  • dialogBackgroundColor
  • textTheme.bodyText2
  • iconTheme.size

Implementation

Future<void> showInfoFlashbar({
  required String message,
  Duration duration = const Duration(seconds: 3),
}) {
  return _showFlashbar(
    message,
    duration: duration,
    icon: Icons.info_outline_rounded,
    iconColor: Colors.blue.shade400,
  );
}