AlertTool class

Constructors

AlertTool()

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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

showBottomPicker({required BuildContext context, required String title, required List<String> options, TextStyle? titleTextStyle, TextStyle? optionTextStyle, TextStyle? cancelTextStyle, required dynamic didIndexSelected(int index)}) → dynamic
底部弹出的选择弹窗
showBottomSheet({required BuildContext context, required String title, required List<String> options, TextStyle? titleTextStyle, TextStyle? optionTextStyle, TextStyle? cancelTextStyle, required dynamic didOptionSelected(String option)}) → dynamic
底部弹出的选择提示弹窗
showInputAlert({required BuildContext context, required String title, required dynamic confirmAction(String text), int? maxLines, int? maxLength, String? placeholder, String? cancelText, String? confirmText, Function? cancelAction, TextStyle? titleTextStyle, TextStyle? placeholderStyle, TextStyle? confirmTextStyle, TextStyle? cancelTextStyle}) → dynamic
showPopMenu(BuildContext context, {required GlobalKey<State<StatefulWidget>> originKey, required List<PopModel> itemsData, dynamic clickCallback(int, PopModel)?, bool? noTriangle, Color? backgroundColor, String? selectedText, Color? itemTitleColor, Color? itemIconColor, Color? itemSelectedColor, double? itemHeight, double? itemWidth, Color? dividerColor, double? triangleHeight, double? triangleWidth, double? maxHeight}) → dynamic
showTipAlert({required BuildContext context, String? title, required String content, String? cancelText, String? confirmText, Function? cancelAction, required Function confirmAction, TextStyle? titleTextStyle, TextStyle? cancelTextStyle, TextStyle? confirmTextStyle, TextStyle? contentTextStyle}) → dynamic
中间弹出的提示弹窗