overlay library

Extensions

Context
OverlayExt

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

Exceptions / Errors

OverlayGetterError
通过 throw,退出循环