Suppose you have a parent widget that can have a variable size.
For example:
var container = new Container( height: 200.0, // Imagine this might change width: 200.0, // Imagine this might change // Imagine content in this container will // depend on the parent container child: new Container(), );
And maybe you want the child parent container to display something different depending on what size it gave.
Think about the breakpoints of the breakpoint, if the width is greater than X, use this layout, if the width is under X, use this layout.
What is the best way to do this in Flutter?
dart flutter
Dvdwasibi
source share