Skip to content

Instantly share code, notes, and snippets.

@tomnewton
Created March 7, 2018 15:31
Show Gist options
  • Save tomnewton/0430eae3d6f86cea21339fe4ea40ec9c to your computer and use it in GitHub Desktop.
Save tomnewton/0430eae3d6f86cea21339fe4ea40ec9c to your computer and use it in GitHub Desktop.
new Row(
children: <Widget>[
new Column(
children: <Widget>[
new Container(
width: 65.0,
height: 65.0,
color: Colors.blue,
)
],
),
new Container(width: 5.0),
new Expanded(
child: new Column(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
new Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
new Text("Title...",
style: new TextStyle(fontWeight: FontWeight.bold),
maxLines: 1,
overflow: TextOverflow.clip),
]
),
new Row(
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
new Text("This is a really long subtitle... this should not overflow the bounds.....this should not overflow the bounds.....this should not overflow the bounds.....this should not overflow the bounds.....this should not overflow the bounds.....",
overflow: TextOverflow.clip)
],
),
],
)
),
new Container(width: 5.0),
new Column(
children: <Widget>[
new Container(
width: 65.0,
height: 65.0,
color: Colors.blue,
)
],
),
],
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment