showInfoBar<T> method
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,
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),
);
},
);
}