-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
建议能不能给toastBuilder加扩展参数 #111
Labels
enhancement
New feature or request
Comments
可能会单开个showNotify,针对性的优化一些特性,我周末想想看 |
dependencies:
flutter_smart_dialog: ^4.9.0+3
SmartDialog.showNotify(msg: '操作成功.', notifyType: NotifyType.success);
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: SmartDialogPage(),
navigatorObservers: [FlutterSmartDialog.observer],
builder: FlutterSmartDialog.init(
notifyStyle: FlutterSmartNotifyStyle(
successBuilder: (String msg) => CustomSuccessWidget(msg: msg),
failureBuilder: (String msg) => CustomFailureWidget(msg: msg),
warningBuilder: (String msg) => CustomWarningWidget(msg: msg),
alertBuilder: (String msg) => CustomAlertWidget(msg: msg),
errorBuilder: (String msg) => CustomErrorWidget(msg: msg),
),
),
);
}
} |
666 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
版本信息
描述bug/需求
面对频繁出现的showSuccessToast 或showErrorToast场景,如请求成功或失败后展示的Toast。FlutterSmartDialog.init toastBuilder 建议加一些可自定义的参数,或者作者有什么其他好的建议。
The text was updated successfully, but these errors were encountered: