widget_extensions 0.0.2 copy "widget_extensions: ^0.0.2" to clipboard
widget_extensions: ^0.0.2 copied to clipboard

outdated

An Extension library for Flutter Widgets.

widget_extensions #

An Extension library for Flutter Widgets.

Getting Started #

This Lib helps by providing utility functions for Flutter Widgets. These Methods are written using extension methods provided by dart sdk 2.6.0 so as of now it requires flutter master branch to work. this is same case for the library only Container and Text Widgets and Sub Widgets (Most of them) for those Widgets are implemented. This is mainly useful for dynamic widgets which will be implemented in code push project for flutter, as well as useful for updatable widgets for your custom implementations.

Install #

widget_extensions: ^0.0.1

Example #

Text('').fromMap({
    'data' : 'This is Extension Widget Library'
});

if more than one same widget is used we can instantiate single Widget at once and modify in next itirations.

Text text = Text('');

text.fromMap({
    'data' : 'This is Extension Widget Library'
});

text.fromMap({
    'data' : 'You can Contribute to this Library by extending Other Widgets',
    'style': Theme.of(context).textTheme.display1.toMap(),
});

you can see normal example by git clone and run this repo.

Contributing to Library #

All Contributions are welcome and thankful You can contribute to this library if you can or like those extensions.

There should be four methods in a widget to be Extended

toMap()

fromMap(jsonMap)

toJson()

fromJson(json)

see container extension file for reference.

Issues #

feel free to open an issue for bugs or improvements.

Supported Widgets #

2
likes
0
pub points
21%
popularity

Publisher

unverified uploader

An Extension library for Flutter Widgets.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on widget_extensions