PPAlert class
弹窗提示,加载,进度条等
Constructors
- PPAlert()
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 Properties
- isAlerted ↔ bool
-
getter/setter pair
- isLoading ↔ bool
-
getter/setter pair
- snackBarConfig ↔ SnackBarConfig
-
getter/setter pair
Static Methods
-
hideLoading(
) → void - 隐藏加载
-
showDoubleTextInput(
{String title = 'Title', String message = '', List< String> ? initialTexts, List<String> ? hintTexts, String cancelLabelText = 'Cancel', String okLabelText = 'OK'}) → Future<List< String> > - 显示2个文本输入框弹窗
-
showError(
String message) → void - 显示错误提示
-
showInfo(
String message) → void - 显示信息提示
-
showLoading(
{String? text, int? timeoutSeconds, Function? onTimeout}) → void - 显示加载中
-
showProgress(
double progress, {String? status}) → void - 显示进度
-
showSingleTextInput(
{String title = 'Title', String message = '', String initialText = '', String hintText = '', String cancelLabelText = 'Cancel', String okLabelText = 'OK'}) → Future< String> - 显示单个文本输入框弹窗
-
showSnackBar(
{String title = 'Tips', String message = 'Messages', String okLabelText = 'OK', Function? onOK}) → void - 显示自定义SnackBar
-
showSuccess(
String message) → void - 显示成功提示
-
showSysAlert(
{String title = 'Tips', String message = 'Messages', String okLabelText = 'OK', Function? onOK}) → void - 显示系统AlertDialog
-
showSysConfirm(
{String title = 'Confirm', String message = 'Do you want to do it?', String cancelLabelText = 'Cancel', String okLabelText = 'OK', Function? onCancel, required Function onConfirm}) → void - 显示系统确认对话框
-
showToast(
String message) → void - 显示提示
-
showWarning(
String message) → void - 显示警告提示