DialogProvider class

Constructors

DialogProvider()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
noticeX<T>(BuildContext context, {required Widget title, required Widget content, Widget? button, VoidCallback? onPressed, double indent = 28, bool? dark}) Future<T?>
Do not use it. TODO 扩展出内容,仅有布局框架。
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

dilemma<T>(BuildContext context, {required String title, required String content, String rightButton = "OK", String leftButton = "CANCEL", bool centerContent = false, bool? dark, VoidCallback? onTapedRight, VoidCallback? onTapedLeft}) Future<T?>
选择项,确定或者取消。
dilemmaMaterial<T>(BuildContext context, {required String title, required String content, String rightButton = "ACCEPT", String leftButton = "CANCEL", bool centerContent = false, bool? dark, VoidCallback? onTapedRight, VoidCallback? onTapedLeft}) Future<T?>
notice<T>(BuildContext context, {required String title, required String content, String buttonName = "Got it", VoidCallback? onPressed, double indent = 28, bool? dark}) Future<T?>
通知,公告。
show(BuildContext context, {required String title, required String message, VoidCallback? onPressed}) Future<bool?>
显示一个对话框,只有一个按钮,取消则按空白区域即可。减少选择的困惑。
status<T>(BuildContext context, {required String status, required Widget statusIcon, IconData? closeIcon, String? description}) Future<T?>
状态栏,表示成功,失败,奖励等状态的提示