createLoading static method
Flushbar
createLoading({
- required String message,
- required LinearProgressIndicator linearProgressIndicator,
- String? title,
- Duration duration = const Duration(seconds: 3),
- AnimationController? progressIndicatorController,
- Color? progressIndicatorBackgroundColor,
Implementation
static Flushbar createLoading(
{required String message,
required LinearProgressIndicator linearProgressIndicator,
String? title,
Duration duration = const Duration(seconds: 3),
AnimationController? progressIndicatorController,
Color? progressIndicatorBackgroundColor}) {
return Flushbar(
title: title,
message: message,
icon: Icon(
Icons.cloud_upload,
color: Colors.blue[300],
),
duration: duration,
showProgressIndicator: true,
progressIndicatorController: progressIndicatorController,
progressIndicatorBackgroundColor: progressIndicatorBackgroundColor,
);
}