You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
528 B
24 lines
528 B
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 ?? '',
|
|
);
|
|
},
|
|
);
|
|
}
|
|
}
|