parent
93f10c80f7
commit
f01158ad5a
@ -0,0 +1,23 @@
|
||||
import 'package:bot_toast/bot_toast.dart';
|
||||
import 'package:recook/widgets/progress/loading_dialog.dart';
|
||||
|
||||
class ReToast {
|
||||
static Function loading({String text}) {
|
||||
return BotToast.showCustomLoading(
|
||||
toastBuilder: (func) {
|
||||
return LoadingDialog(text: text ?? '');
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
static Function err({String text}) {
|
||||
return BotToast.showCustomText(
|
||||
toastBuilder: (func) {
|
||||
return StatusDialog(
|
||||
status: Status.error,
|
||||
text: text ?? '',
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue