extended/overlay/overlay library

Enums

LoadingStyle
ToastStyle
Toast类型 如果使用custom 请设置 customIcon

Functions

closeAllOverlay() → void
关闭所有Overlay
closeLoading() bool
closeOverlay({ExtendedOverlayEntry? entry}) bool
关闭最顶层的Overlay
closeToast() bool
showLoading({Widget? custom, ModalWindowsOptions? options, Widget? extra, double? value, Color? backgroundColor, Animation<Color>? valueColor, double strokeWidth = 4.0, String? semanticsLabel, String? semanticsValue, LoadingStyle? style}) ExtendedOverlayEntry?
loading 加载框 关闭 closeLoading();
showToast(String message, {ToastStyle? style, IconData? customIcon, ToastOptions? options}) Future<ExtendedOverlayEntry?>
Toast 关闭 closeToast(); 添加 await Toast 关闭后继续执行之后的方法