binding_helper

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

binding helper

binding_helper #
Helper for WidgetsBinding.It is a easy way to use WidgetsBinding,
for example: Get the size of a widget after the widget is rendered.
Getting Started #
Install #
add
binding_helper:
copied to clipboard
to your pubspec.yaml
Get the size of the widget #
Using GetRectMinxin

class MyState extends State<MyWidget> width GetRectMinxin<MyWidget>{

// The rect includs size and position of the widget
@override
void onGetRect(Rect rect) {
...you code
}

}

copied to clipboard
Using RectProvider

new RectProvider(child: myWidget,onGetRect: (Rect rect){
/// rect is the `Rect` of myWidet
_rect = rect;

},)

copied to clipboard

More easy way to use WidgetsBinding is coming soon. #

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.