FilledStacks / responsive_builder

A set of widgets to make responsive UI building in flutter more readable
MIT License
497 stars 80 forks source link

Passing breakpoints through context? #6

Closed crizant closed 4 years ago

crizant commented 4 years ago

Currently if we need custom breakpoints, we will need to provide the ScreenBreakpoints object to every ScreenTypeLayout calls. It would be nice if we can use something like BreakpointProvider to provide it at the topmost of widget tree, then every instance of ScreenTypeLayout can get it internally.

FilledStacks commented 4 years ago

That would definitely be very useful. You should add it :)

FilledStacks commented 4 years ago

@crizant Not passing through context but now you can set the breakpoints globally using ResponsiveSizingConfig using v 0.2.0

Example on read me