In Android match_parent
and wrap_content
are used to resize the widgets automatically relative to their parent to the content the widget contains.
In Flutter it seems by default all widgets are set to wrap_content
, how would I change it such that I can fill its width
and height
to that of its parent?
Best Answer
You can do with little Trick: Suppose you have requirement of : ( Width,Height )
Wrap_content ,Wrap_content :
Match_parent,Match_parent:
Match_parent,Wrap_content :
Wrap_content ,Match_parent: