DialogProvider class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
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?>
-
状态栏,表示成功,失败,奖励等状态的提示