flutterx_utils library
Flutterx Utils
Classes
- CancellationToken
-
ConcurrentExecutionError<
T> - Indent
- Location
- Mutex
- MutexRun
- PartialBoxConstraints
- Describe partial constraints. Null values will be resolved by resolve method
- Printable
- RenderSafeDryLayout
- RenderSizeObserver
- SafeDryLayout
- Some widget (e.g. InputDecorator) don't support dry layout So build will fail if this kind of widgets are placed inside a SizeObserver with SizeObserver.useDryLayout set to true That's where you may consider wrapping your no-dry-layout widgets inside a SafeDryLayout
- ScrollableView
- Allows to scroll content in both horizontal and vertical directions Wraps InteractiveViewer but adds scroll feature and also enables the use of scrollbars by
- ScrollableViewScrollbar
- Allows you to apply scrollbars to any widget and control it from outside This widget renders Scrollbar and handles ScrollPosition like Scrollable but allows you to control it from outside using a controller. All you have to do in other widgets is receiving the controller parameter and use it after setting up the position by calling ScrollPosition.applyViewportDimension and ScrollPosition.applyContentDimensions methods
- SizeObserver
- Widget which reports child size changes to onSizeChanged callback Useful if you want a parent widget to change behaviour depending on child size The size returned by the callback is computed depending on constraints
-
TypedFactoryMap<
S, K, V extends Object> -
WidgetDataSync<
T> - Window
Enums
Extensions
- BrightnessExt on Brightness
- ColorExt on Color
-
DTOListExt
on Iterable<
T> -
EnumListExt
on Iterable<
T> -
EnumValuesListExt
on List<
E> - HighOrderFunctions on T
-
IterableExt
on Iterable<
E> -
ListExt
on List<
E> - LocationExt on Location
-
MapExt
on Map<
K, V> - ScrollPositionExt on ScrollPosition
-
SetExt
on Set<
E> - StringExt on String
- WindowExt on Window
Functions
-
fromJsonBool(
Object value) → bool -
fromJsonDouble(
Object value) → double -
fromJsonEnum<
E> (String name, Map< String, E> values) → E -
fromJsonInt(
Object value) → int -
fromJsonList<
E> (List json, {FromJson< E> ? fromJson}) → List<E> -
fromJsonMap<
K, V> (Map json, {FromJson< K> ? fromJsonKey, FromJson<V> ? fromJsonValue}) → Map<K, V> -
fromJsonString(
Object value) → String -
hashMap(
Map< Object?, Object?> object) → int -
scheduleEndOfFrame(
FrameCallback callback) → void -
schedulePostFrame(
FrameCallback callback) → void
Typedefs
- FrameCallback = void Function()
-
FromJson<
T> = T Function(dynamic json) -
FromJsonList<
T> = T Function(List json) -
FromJsonObject<
T> = T Function(JsonObject json) -
JsonObject
= Map<
String, dynamic> -
KeyOf<
K, V> = K Function(V item) -
TypedItemFactory<
S, V> = V Function< T>(S src)