fl_extended library

Enums

BuilderState
DateTimeDist
FlAnimationStyle
PopupFromStyle
弹窗进入方向属性
ProgressIndicatorStyle
RoutePushStyle
ToastIconStyle
Toast类型 如果使用custom 请设置 customIcon
UnifiedButtonCategory

Constants

isDebug → const bool
isProfile → const bool
isRelease → const bool
isWeb → const bool
kFlAnimationDuration → const Duration

Properties

isAndroid bool
getter/setter pair
isDesktop bool
getter/setter pair
isFuchsia bool
getter/setter pair
isIOS bool
getter/setter pair
isLinux bool
getter/setter pair
isMacOS bool
getter/setter pair
isMobile bool
getter/setter pair
isWindows bool
getter/setter pair

Functions

addObserver(WidgetsBindingObserver observer) → void
addPersistentFrameCallback(FrameCallback duration) → void
addPostFrameCallback(FrameCallback duration) → void
addTimingsCallback(TimingsCallback callback) → void
closeAllOverlay() → void
关闭所有Overlay
closeLoading() bool
closeOverlay({ExtendedOverlayEntry? entry}) bool
关闭最顶层的Overlay
closePopup([dynamic value]) Future<bool>
关闭弹窗 也可以通过 Navigator.of(context).maybePop()
closeToast() bool
log<T>(T msg) → void
maybePop<T extends Object>([T? result]) Future<bool>
可能返回到上一个页面
pop<T extends Object>([T? result, bool isMaybe = false]) Future<bool>
返回上一个页面
popBack(Future navigator, {bool nullBack = false, bool useMaybePop = false}) → void
pop 返回简写 带参数 nullBack =true navigator 返回为空 就继续返回上一页面
popUntil([RoutePredicate? predicate]) → void
循环pop 直到pop至指定页面
push<T extends Object?, TO extends Object?>(Widget widget, {PageRouteOptions? options}) Future<T?>
打开新页面
pushAndRemoveUntil<T extends Object?>(Widget widget, {PageRouteOptions? options, RoutePredicate? predicate}) Future<T?>
打开新页面 并移出堆栈所有页面
pushReplacement<T extends Object?, TO extends Object?>(Widget widget, {PageRouteOptions? options, TO? result}) Future<T?>
打开新页面替换当前页面
removeObserver(WidgetsBindingObserver observer) → void
showLoading({LoadingBuilder? builder, LoadingOptions? options}) ExtendedOverlayEntry?
loading 加载框 关闭 closeLoading();
showMenuPopup<T>({required RelativeRect position, required List<PopupMenuEntry<T>> items, T? initialValue, double? elevation, String? semanticLabel, ShapeBorder? shape, Color? color, bool useRootNavigator = false}) Future<T?>
showSnackBar(SnackBar snackBar) ScaffoldFeatureController<SnackBar, SnackBarClosedReason>?
showToast(String message, {ToastIconStyle? iconStyle, FlAnimationStyle? animationStyle, Duration? animationDuration, TextStyle? textStyle, Duration? duration, GestureTapCallback? onToastTap, ToastBuilder? builder, ToastOptions? options}) Future<ExtendedOverlayEntry?>
Toast 关闭 closeToast(); 添加 await Toast 关闭后继续执行之后的方法
when<T>(Map<bool, ValueGetter<T>> conditionMap) → T?
English: The when function of the Kotlin version of the method switch.
As long as the first true is found in Map.keys of conditionMap, its corresponding ValueGetter method will be executed immediately and the relative value will be returned.
If it is not found, it will return null; if you need a default value, you can add a MapEntry with a key equal to true at the end of the Map
whenTrue<T>(Map<ValueGetter<bool>, ValueGetter<T>> conditionMap) → T?
English: The when function of the Kotlin version of the method switch,its conditional expression will be calculated。.
As long as conditionMap to Map.keys appears first execution result is true, it will immediately perform corresponding ValueGetter method, and an opposite return value.
If it is not found, it will return null; if you need a default value, you can add a MapEntry with a key equal to true at the end of the Map
whenValue<V, T>(V value, Map<V, ValueGetter<T>> conditionMap) → T?
English: The super evolution version💖💖💖 of switch method, all basic types of values can be compared, including List, Map, Set, and Iterable.
All need do is value in Map.keys of conditionMap, its corresponding ValueGetter method will be executed

Typedefs

Callback = void Function()
******** Callback Zero ******** /// Callback Zero
CallbackFuture = Future<void> Function()
Future Callback Zero
CallbackFutureT<T> = Future<T> Function()
Future Callback Zero
CallbackT<T> = T Function()
Callback Zero
FlAnimationCallback = void Function(Function running)
LoadingBuilder = Widget? Function(BuildContext context, ProgressIndicatorOptions? progressIndicator)
PopInvokedWithOverlayCallback = void Function(bool didPop, bool didCloseOverlay)
PopInvokedWithResultAndOverlayCallback<T> = void Function(bool didPop, T? result, bool didCloseOverlay)
RunZonedGuardedOnError = void Function(Object error, StackTrace stackTrace)
ToastBuilder = Widget? Function(BuildContext context, ToastContent content)
ValueBuilderCallback<T> = Widget Function(BuildContext context, T? value, ValueCallback<T> updater)
ValueCallback<V> = void Function(V value)
Callback One
ValueCallbackFuture<V> = Future<void> Function(V value)
Future Callback One
ValueCallbackFutureT<T> = Future<T> Function(T value)
Future Callback One
ValueCallbackFutureTV<T, V> = Future<T> Function(V value)
Future Callback One
ValueCallbackT<T> = T Function(T value)
******** Callback One ******** /// Callback One
ValueCallbackTV<T, V> = T Function(V value)
Callback One
ValueFourCallback<V1, V2, V3, V4> = void Function(V1 value1, V2 value2, V3 value3, V4 value4)
******** Callback Four ******** /// Callback Four
ValueFourCallbackFuture<V1, V2, V3, V4> = Future<void> Function(V1 value1, V2 value2, V3 value3, V4 value4)
Future Callback Four
ValueFourCallbackFutureT<T, V1, V2, V3, V4> = Future<T> Function(V1 value1, V2 value2, V3 value3, V4 value4)
Future Callback Four T
ValueFourCallbackT<T, V1, V2, V3, V4> = T Function(V1 value1, V2 value2, V3 value3, V4 value4)
Callback Four T
ValueThreeCallback<V1, V2, V3> = void Function(V1 value1, V2 value2, V3 value3)
******** Callback Three ******** /// Callback Three
ValueThreeCallbackFuture<V1, V2, V3> = Future<void> Function(V1 value1, V2 value2, V3 value3)
Future Callback Three
ValueThreeCallbackFutureT<T, V1, V2, V3> = Future<T> Function(V1 value1, V2 value2, V3 value3)
Future Callback Three T
ValueThreeCallbackT<T, V1, V2, V3> = T Function(V1 value1, V2 value2, V3 value3)
Callback Three T
ValueTwoCallback<V1, V2> = void Function(V1 value1, V2 value2)
******** Callback Two ******** /// Callback Two
ValueTwoCallbackFuture<V1, V2> = Future<void> Function(V1 value1, V2 value2)
Callback Two T
ValueTwoCallbackFutureT<T, V1, V2> = Future<T> Function(V1 value1, V2 value2)
Future Callback Two T
ValueTwoCallbackT<T, V1, V2> = T Function(V1 value1, V2 value2)
Future Callback Two