flutter_nop library
Classes
-
AutoListenDelegate<
T, P extends ValueListenable< T> > -
AutoListenMap<
K, V> -
AutoListenNotifier<
T> -
AutoListenWrapper<
T, P extends ValueNotifier< T> > -
ChangeAutoListenList<
E> - ChangeNotifierBase
-
ChangeNotifierSelector<
T, D extends Listenable> - ChangeScoop
- CurvedAnimationWidget
-
CurvedAnimation需要调用
dispose
释放资源 - NopDependence
- NopDependenceManager
- NopGlobalDependence
- NopListener
- NopPopUntilAction
- OverlayDelegate
- OverlayDisposeEntry
-
OverlayMixinDelegate<
T extends OverlayMixin> - OverlayObserver
- OverlayObserverState
- OverlayPannelBuilder
- OverlaySideGesture
- Widget
- OverlayVerticalPannels
- OverlayWidget
- RouteNode
-
UserGestureController<
T>
Enums
Mixins
-
AutoListenAddRemove<
T, P extends Listenable> - AutoListenChangeNotifierMixin
-
AutoListenValueDelegateMixin<
T, P extends ValueListenable< T> > - ChangeNotifierMixin
- Node
- NopLifecycle
- 自动管理生命周期
- NotifyStateMixin
- NotifyStateOnChangeNotifier
- OverlayClose
- OverlayEvent
- OverlayIgnore
- OverlayMixin
- 必须先调用init初始化
- OverlayPannel
- OverlayShowOnly
-
StateAsyncGetter<
T extends State< StatefulWidget> > - 异步
Extensions
- AutoListenNotifierExt on T
-
AutoMap
on Map<
K, V> - ChangeAutoDelegateExt on T
- ChangeAutoWrapExt on T
-
ChangeAutoWrapperSelectorAl
on ChangeNotifierSelector<
T, D> -
ChangeList
on List<
E> - Context on BuildContext
- ListenableWidget on T
-
ListenableWidgetValue
on ValueListenable<
V> - OverlayExt on NavInterface
- ValueNotifierSelector on D
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
,退出循环