main
library
Constants
-
FL_AlignCenter
→ const Map<String, String>
-
-
FL_AlignEnd
→ const Map<String, String>
-
-
FL_AlignStart
→ const Map<String, String>
-
-
FL_BorderSolid
→ const Map<String, String>
-
-
FL_FLEX_NO
→ const Map<String, bool>
-
-
FL_FlexColumn
→ const Map<String, String>
-
-
FL_FlexColumnReverse
→ const Map<String, String>
-
-
FL_FlexNoWrap
→ const Map<String, String>
-
-
FL_FlexRow
→ const Map<String, String>
-
-
FL_FlexRowReverse
→ const Map<String, String>
-
-
FL_FlexWrap
→ const Map<String, String>
-
-
FL_ItemCenter
→ const Map<String, String>
-
-
FL_ItemEd
→ const Map<String, String>
-
-
FL_ItemStart
→ const Map<String, String>
-
-
FL_JustifyAround
→ const Map<String, String>
-
-
FL_JustifyBetween
→ const Map<String, String>
-
-
FL_JustifyCenter
→ const Map<String, String>
-
-
FL_JustifyEnd
→ const Map<String, String>
-
-
FL_JustifyStart
→ const Map<String, String>
-
-
FL_NO_FLEX
→ const Map<String, bool>
-
-
useTextEditingController
→ const _TextEditingControllerHookCreator
-
Creates a TextEditingController, either via an initial text or an initial
TextEditingValue.
Properties
-
debugHotReloadHooksEnabled
↔ bool
-
Whether to behave like in release mode or allow hot-reload for hooks.
getter/setter pair
-
FL_AbsBottom
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_AbsLeft
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_Absolute
→ Map<String, String>
-
final
-
FL_AbsRight
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_AbsTop
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_BackgroundColor
→ Map<String, dynamic> Function({dynamic color})
-
final
-
FL_BackgroundImage
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_BackgroundSize
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_BgColor
→ Map<String, dynamic> Function({dynamic color})
-
final
-
FL_BgImage
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_BgSize
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_BgSizeContain
→ Map<String, BoxFit>
-
final
-
FL_BgSizeCover
→ Map<String, BoxFit>
-
final
-
FL_BgSizeFill
→ Map<String, BoxFit>
-
final
-
FL_BgSizeFitHeight
→ Map<String, BoxFit>
-
final
-
FL_BgSizeFitWidth
→ Map<String, BoxFit>
-
final
-
FL_BgSizeScaleDown
→ Map<String, BoxFit>
-
final
-
FL_Border
→ Map<String, dynamic> Function({dynamic color, dynamic size})
-
final
-
FL_BorderBottom
→ Map<String, dynamic> Function({dynamic color, dynamic size})
-
final
-
FL_BorderColor
→ Map<String, dynamic> Function({dynamic color})
-
final
-
FL_BorderLeft
→ Map<String, dynamic> Function({dynamic color, dynamic size})
-
final
-
FL_BorderLeftBottom
→ Map<String, dynamic> Function({dynamic color, dynamic size})
-
final
-
FL_BorderLeftTop
→ Map<String, dynamic> Function({dynamic color, dynamic size})
-
final
-
FL_BorderRadius
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_BorderRight
→ Map<String, dynamic> Function({dynamic color, dynamic size})
-
final
-
FL_BorderRightBottom
→ Map<String, dynamic> Function({dynamic color, dynamic size})
-
final
-
FL_BorderRightTop
→ Map<String, dynamic> Function({dynamic color, dynamic size})
-
final
-
FL_BorderTop
→ Map<String, dynamic> Function({dynamic color, dynamic size})
-
final
-
FL_BOX_SIZING
→ Map<String, FL_BOX_SIZING_ENUM> Function(FL_BOX_SIZING_ENUM boxSizing)
-
final
-
FL_Clip_Radius
→ Map<String, bool> Function({bool state = false})
-
final
-
FL_Color
→ Map<String, dynamic> Function({dynamic color})
-
final
-
FL_ColorBlack
→ Map<String, String>
-
final
-
FL_ColorBlue
→ Map<String, String>
-
final
-
FL_ColorGreen
→ Map<String, String>
-
final
-
FL_ColorRed
→ Map<String, String>
-
final
-
FL_ColorWhite
→ Map<String, String>
-
final
-
FL_DISPLAY
→ Map<String, String> Function({FL_DISPLAY_ENUM display = FL_DISPLAY_ENUM.flex})
-
final
-
Fl_FColor
→ Map<String, dynamic> Function({dynamic color})
-
final
-
FL_FFamily
→ Map<String, dynamic> Function({dynamic text})
-
final
-
FL_Flex
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_Font_Color
→ Map<String, dynamic> Function({dynamic color})
-
final
-
FL_Font_Family
→ Map<String, dynamic> Function({dynamic text})
-
final
-
FL_Font_Size
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_Font_Weight
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_FSize
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_FSizeLg
→ Map<String, String>
-
final
-
FL_FSizeXs
→ Map<String, String>
-
final
-
FL_FWeight
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_Height
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_HFull
→ Map<String, String>
-
final
-
FL_Margin
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_MarginBottom
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_MarginLeft
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_MarginRight
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_MarginTop
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_MarginX
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_MarginY
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_MaxHeight
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_MaxWidth
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_MinHeight
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_MinWidth
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_Opacity
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_OverScrollX
→ Map<String, String>
-
final
-
FL_OverScrollY
→ Map<String, String>
-
final
-
FL_Padding
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_PaddingBottom
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_PaddingLeft
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_PaddingRight
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_PaddingTop
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_PaddingX
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_PaddingY
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_Radius
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_RadiusLeftBottom
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_RadiusLeftTop
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_RadiusLg
→ Map<String, String>
-
final
-
FL_RadiusRightBottom
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_RadiusRightTop
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_RadiusSm
→ Map<String, String>
-
final
-
FL_RadiusXs
→ Map<String, String>
-
final
-
FL_Relative
→ Map<String, String>
-
final
-
FL_ScrollBar
→ Map<String, dynamic> Function({dynamic state})
-
final
-
FL_SizeSm
→ Map<String, String>
-
final
-
FL_TextDecoration
→ Map<String, dynamic> Function({dynamic text})
-
final
-
FL_Transform
→ Map<String, dynamic> Function({dynamic matrix4})
-
final
-
FL_WFull
→ Map<String, String>
-
final
-
FL_Width
→ Map<String, dynamic> Function({dynamic size})
-
final
-
FL_ZIndex
→ Map<String, dynamic> Function({dynamic index})
-
final
Functions
-
alert(BuildContext context, String title)
→ void
-
-
getSize({dynamic size, dynamic defValue = 0.0, dynamic isTransform = true})
→ dynamic
-
-
getStyle(dynamic style)
→ dynamic
-
-
getStyleType(dynamic style)
→ StyleType
-
-
getTypeOf(dynamic data)
→ String
-
-
mergeStyle(dynamic styles)
→ Map
-
-
setInterval(PeriodicCallBack click, dynamic time)
→ void
-
-
setTimeout(dynamic callback, dynamic time)
→ dynamic
-
-
use<R>(Hook<R> hook)
→ R
-
Registers a Hook and returns its value.
-
useAnimation<T>(Animation<T> animation)
→ T
-
Subscribes to an Animation and returns its value.
-
useAnimationController({Duration? duration, Duration? reverseDuration, String? debugLabel, double initialValue = 0, double lowerBound = 0, double upperBound = 1, TickerProvider? vsync, AnimationBehavior animationBehavior = AnimationBehavior.normal, List<Object?>? keys})
→ AnimationController
-
Creates an AnimationController and automatically disposes it when necessary.
-
useAppLifecycleState()
→ AppLifecycleState?
-
Returns the current AppLifecycleState value and rebuilds the widget when it changes.
-
useAutomaticKeepAlive({bool wantKeepAlive = true})
→ void
-
Mark a widget using this hook as needing to stay alive even when it's in a
lazy list that would otherwise remove it.
-
useCallback<T extends Function>(T callback, List<Object?> keys)
→ T
-
Cache a function across rebuilds based on a list of keys.
-
useContext()
→ BuildContext
-
Obtains the BuildContext of the building HookWidget.
-
useEffect(Dispose? effect(), [List<Object?>? keys])
→ void
-
Useful for side-effects and optionally canceling them.
-
useFocusNode({String? debugLabel, FocusOnKeyCallback? onKey, FocusOnKeyEventCallback? onKeyEvent, bool skipTraversal = false, bool canRequestFocus = true, bool descendantsAreFocusable = true})
→ FocusNode
-
Creates an automatically disposed FocusNode.
-
useFocusScopeNode({String? debugLabel, FocusOnKeyCallback? onKey, FocusOnKeyEventCallback? onKeyEvent, bool skipTraversal = false, bool canRequestFocus = true})
→ FocusScopeNode
-
Creates an automatically disposed FocusScopeNode.
-
useFuture<T>(Future<T>? future, {T? initialData, bool preserveState = true})
→ AsyncSnapshot<T>
-
Subscribes to a Future and returns its current state as an AsyncSnapshot.
-
useIsMounted()
→ IsMounted
-
Returns an IsMounted object that you can use
to check if the State is mounted.
-
useListenable<T extends Listenable?>(T listenable)
→ T
-
Subscribes to a Listenable and marks the widget as needing build
whenever the listener is called.
-
useListenableSelector<R>(Listenable listenable, R selector())
→ R
-
Rebuild only when there is a change in the selector result.
-
useMemoized<T>(T valueBuilder(), [List<Object?> keys = const <Object>[]])
→ T
-
Caches the instance of a complex object.
-
useOnAppLifecycleStateChange(LifecycleCallback? onStateChanged)
→ void
-
Listens to the AppLifecycleState.
-
useOnPlatformBrightnessChange(BrightnessCallback onBrightnessChange)
→ void
-
Listens to the platform Brightness.
-
usePageController({int initialPage = 0, bool keepPage = true, double viewportFraction = 1.0, List<Object?>? keys})
→ PageController
-
Creates a PageController that will be disposed automatically.
-
usePlatformBrightness()
→ Brightness
-
Returns the current platform Brightness value and rebuilds the widget when it changes.
-
usePrevious<T>(T val)
→ T?
-
Returns the previous value passed to usePrevious (from the previous widget
build
).
-
useReassemble(VoidCallback callback)
→ void
-
Runs the callback on every hot reload,
similar to
reassemble
in the stateful widgets.
-
useReducer<State, Action>(Reducer<State, Action> reducer, {required State initialState, required Action initialAction})
→ Store<State, Action>
-
An alternative to useState for more complex states.
-
useRef<T>(T initialValue)
→ ObjectRef<T>
-
Creates an object that contains a single mutable property.
-
useScrollController({double initialScrollOffset = 0.0, bool keepScrollOffset = true, String? debugLabel, List<Object?>? keys})
→ ScrollController
-
Creates ScrollController that will be disposed automatically.
-
useSingleTickerProvider({List<Object?>? keys})
→ TickerProvider
-
Creates a single usage TickerProvider.
-
useState<T>(T initialData)
→ ValueNotifier<T>
-
Creates a variable and subscribes to it.
-
useStream<T>(Stream<T>? stream, {T? initialData, bool preserveState = true})
→ AsyncSnapshot<T>
-
Subscribes to a Stream and returns its current state as an AsyncSnapshot.
-
useStreamController<T>({bool sync = false, VoidCallback? onListen, VoidCallback? onCancel, List<Object?>? keys})
→ StreamController<T>
-
Creates a StreamController which is automatically disposed when necessary.
-
useTabController({required int initialLength, TickerProvider? vsync, int initialIndex = 0, List<Object?>? keys})
→ TabController
-
Creates a TabController that will be disposed automatically.
-
useTransformationController({Matrix4? initialValue, List<Object?>? keys})
→ TransformationController
-
Creates and disposes a TransformationController.
-
useValueChanged<T, R>(T value, R? valueChange(T oldValue, R? oldResult))
→ R?
-
Watches a value and triggers a callback whenever the value changed.
-
useValueListenable<T>(ValueListenable<T> valueListenable)
→ T
-
Subscribes to a ValueListenable and returns its value.
-
useValueNotifier<T>(T initialData, [List<Object?>? keys])
→ ValueNotifier<T>
-
Creates a ValueNotifier that is automatically disposed.