flutter_extensions 2.1.0
flutter_extensions: ^2.1.0 copied to clipboard

It adds utility extensions to the flutter classes and adds some utility classes.

Flutter Extensions #

WidgetsDescription
AspectRatioBuilderBuild the widget with the dimension from an aspect ratio
FixedIndexedStackBuild the child only when the index is selected
InkStackAdd [InkWell] on image
KeyboardRemoverClose the keyboard when use press on the screen
SizeCopierCopy the widget size into SizeCopierController
SizeCopyRead the widget size into SizeCopierController and build the child
Enums
TargetPlatform

BuildContext #

CommandDescription
themeThe [ThemeData] instance from the closest context.
defaultTextStyleThe [DefaultTextStyle] instance from the closest context.
iconThemeThe [IconThemeData] instance from the closest context.
localizationsThe [Localizations] instance from the closest context.
localeThe [Locale] instance from the closest context.
navigatorThe [Navigator] instance from the closest context.
tryReadReturns the read value if it exists otherwise null.
tryWatchReturns the watch value if it exists otherwise null.

DateTime - Time #

CommandDescription
DateTime.toTimeOfDayConvert it ot [TimeOfDay]
DateTime.copyWithTimeOfDayCopy with [timeOfDay]

Size #

CommandDescription
copyWithCopy with new values.

InputDecoration #

CommandDescription
InputDecoration.completeWith(...)returns a copy of InputDecoration by completing it with the attributes

Table #

CommandDescription
DataRow.copyWith(...)returns a copy of DataRow with the new attributes
DataRow.completeWith(...)returns a copy of DataRow by completing it with the attributes
DataCell.copyWith(...)returns a copy of DataCell with the new attributes
DataCell.completeWith(...)returns a copy of DataCell by completing it with the attributes

Widgets #

Listenable - ChangeNotifier

WidgetDescription
ChangeableProvider...
ChangeableBuilderlisten to a Listenable and construct the ui based on the changes
ChangeableListener...
ChangeableConsumerto do...
ChangeableValueBuilderlisten to a Listenable and construct the ui based on the changes only if they respect the 'condition' or the value does not change
ChangeableValueListenerto do...
ChangeableValueConsumerto do...

RxStream

Listen to a Stream or StreamValue and filtering by previous e current state Not repeat data or AsyncSnapshot | Widget | Description | | ------- | ----------- | | RxStreamConsumer | Construct the Widget based on the AsyncSnapshot and notify change AsyncSnapshot | | RxStreamBuilder | Construct the Widget based on the AsyncSnapshot | | RxStreamListener | Notify change AsyncSnapshot | | ValueStreamConsumer | Construct the Widget based on the data and notify change data | | ValueStreamBuilder | Construct the Widget based on the data | | ValueStreamListener | Notify change data |

0
likes
50
pub points
55%
popularity

It adds utility extensions to the flutter classes and adds some utility classes.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

brexmaster@gmail.com

License

MIT (LICENSE)

Dependencies

flutter, provider, pure_extensions, rxdart

More

Packages that depend on flutter_extensions