showInfoBar<T> method

Future<T?> showInfoBar<T>({
  1. required Widget content,
  2. FlashPosition position = FlashPosition.bottom,
  3. Duration duration = const Duration(seconds: 3),
  4. Icon? icon = const Icon(Icons.info_outline),
  5. Color? indicatorColor = const Color(0xFF64B5F6),
  6. FlashBuilder<T>? primaryActionBuilder,
})

Show an information flash bar.

Implementation

Future<T?> showInfoBar<T>({
  required Widget content,
  FlashPosition position = FlashPosition.bottom,
  Duration duration = const Duration(seconds: 3),
  Icon? icon = const Icon(Icons.info_outline),
  Color? indicatorColor = const Color(0xFF64B5F6),
  FlashBuilder<T>? primaryActionBuilder,
}) {
  return showFlash<T>(
    context: this,
    duration: duration,
    builder: (context, controller) {
      return FlashBar(
        controller: controller,
        position: position,
        indicatorColor: indicatorColor,
        icon: icon,
        content: content,
        primaryAction: primaryActionBuilder?.call(context, controller),
      );
    },
  );
}