Skip to content

Instantly share code, notes, and snippets.

@XinyueZ
Created November 11, 2019 23:20
Show Gist options
  • Select an option

  • Save XinyueZ/2ca9301328a758cfbabce72eed05f77a to your computer and use it in GitHub Desktop.

Select an option

Save XinyueZ/2ca9301328a758cfbabce72eed05f77a to your computer and use it in GitHub Desktop.
flutter_ Wrap_content
Wrap_content ,Wrap_content :
//use this as child
Wrap(
children: <Widget>[*your_child*])
Match_parent,Match_parent:
//use this as child
Container(
height: double.infinity,
width: double.infinity,child:*your_child*)
Match_parent,Wrap_content :
//use this as child
Row(
mainAxisSize: MainAxisSize.max,
children: <Widget>[*your_child*],
);
Wrap_content ,Match_parent:
//use this as child
Column(
mainAxisSize: MainAxisSize.max,
children: <Widget>[your_child],
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment