FlashBarShortcuts extension

Context extension for flash bar.

on

Methods

showErrorBar<T>({required Widget content, FlashPosition position = FlashPosition.bottom, Duration duration = const Duration(seconds: 3), Icon? icon = const Icon(Icons.error_outline), Color? indicatorColor = const Color(0xFFE57373), FlashBuilder<T>? primaryActionBuilder}) Future<T?>
Show a error flash bar.
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}) Future<T?>
Show an information flash bar.
showSuccessBar<T>({required Widget content, FlashPosition position = FlashPosition.bottom, Duration duration = const Duration(seconds: 3), Icon? icon = const Icon(Icons.check_circle_outline), Color? indicatorColor = const Color(0xFF81C784), FlashBuilder<T>? primaryActionBuilder}) Future<T?>
Show a success flash bar.