super_layout_builder

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

super layout builder

Super Layout Builder #
Check it out at Pub.Dev
The best way to create responsive layouts for dynamic screen sizes.
*Note: This library was designed for the web version of the flutter, since web pages, unlike cell phone applications, can be resized several times in a row by the user.
SuperLayoutBuilder #

LayoutBuilder #

Help Maintenance #
I've been maintaining quite many repos these days and burning out slowly. If you could help me cheer up, buying me a cup of coffee will make my life really happy and get much energy out of it.

Getting Started #
The implementation is very simple, just call the widget passing your other widget as a child.
SuperLayoutBuilder(
triggerWidth: [ // Pass list of sizes to compare
850
],
triggerHeight: [
500
],
builder: (c, MediaQueryData m) => MyWidget(),
)
copied to clipboard
Triggers #
When passing values ​​to the list of triggers, when the screen is resized, it will be checked if the new screen size is smaller or larger than one of the list sizes, thus only redoing the screen when it hits a specific point, preventing the screen be redone for each modified px.
From the return of MediaQueryData, you can for example compare if the current screen size is already feasible to use a drawer as in the example at the beginning.

License

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

Files In This Product:

Customer Reviews

There are no reviews.