fl_utilities 1.0.0 fl_utilities: ^1.0.0 copied to clipboard
Simple flutter utilities such as shorthands extension on BuildContext, debounce extension on ValueChanged, SizedScrollableArea widget, and more.
0.1.1 #
0.1.0 #
Added #
Extensions #
-
on [BuildContext]:
theme
, shorthand forTheme.of(context)
.colorScheme
, shorthand forTheme.of(context).colorScheme
.textTheme
, shorthand forTheme.of(context).textTheme
.mediaQuery
, shorthand forMediaQuery.of(context)
.scaffold
, shorthand forScaffold.of(context)
.scaffoldMessenger
, shorthand forScaffoldMessenger.of(context)
.
-
on [Text]:
applyOpacity
, create a copy of [Text] with applied opacity.
-
on [ValueChanged]:
debounce
, prevent callback from being called too often.
Widgets #
SizedScrollableArea
, a scrollable area that can be sized. It act as extra scrollable area (which detect touch and mouse wheel pointer) if your [Scrollable] widget must have fixed size.
Others #
-
DialogPage
, utilities for "go_router" package to show dialog. Did'nt depend on "go_router" package so "fl_utils" can be used without it. -
useUrlPathStrategy
, use path url strategy to remove hash from url path (https://github.com/flutter/flutter/issues/89763).