flutter_nop library

Properties

final

Functions

showOverlay(Widget content, {Duration duration = const Duration(seconds: 3), Duration animationDuration = const Duration(milliseconds: 300), Duration delayDuration = Duration.zero, bool? closeOndismissed, Color? color, BorderRadius? radius, bool removeAll = false, double? left = 0, double? right = 0, double? top = 0, double? bottom = 0, EdgeInsets? margin, NopOverlayPosition position = NopOverlayPosition.none, Object? showKey, bool autoShow = true, void onTap(OverlayMixin owner)?, Widget builder(BuildContext context, Widget child)?, Widget transition(Widget child, UserGestureController<OverlayPannelBuilder> controller)?}) OverlayMixinDelegate<OverlayMixin>
waitForFrame() Future<void>
waitState<T extends State<StatefulWidget>>(FutureOr<void> run(T), StateGetter<T> stateGetter, VoidCallback onFailed) FutureOr<void>
在同一个代码块中读取值 确保初始化时,state.mounted == true

Typedefs

BannerDelegate = OverlayMixinDelegate<OverlayMixin>
Cs = ChangeScoop
GetFactory<T> = BuildFactory<T> Function(Type t)
ListenerVisitor = void Function(Object? group, NopListener listener)
ShouldNotify<T, D extends Listenable> = T Function(D parent)
SnackbarDelegate = OverlayMixinDelegate<OverlayMixin>
StateGetter<T> = T? Function()
ToastDelegate = OverlayMixinDelegate<OverlayMixin>
WidgetGestureBuilder<T> = Widget Function(BuildContext context, UserGestureController<T> controller)

Exceptions / Errors

OverlayGetterError
通过 throw,退出循环