Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyWidget extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Column(children: <Widget>[
- Expanded(
- child: Container(
- child: Text(' One step at a time'),
- ),
- ),
- Expanded(
- child: Container(
- child: Row(
- mainAxisSize: MainAxisSize.max,
- mainAxisAlignment: MainAxisAlignment.start,
- crossAxisAlignment: CrossAxisAlignment.stretch,
- children: <Widget>[
- Expanded(
- child: Container(
- color: Colors.blueAccent,
- child: RaisedButton(
- onPressed: () {},
- child: Text(
- "Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah",
- style: TextStyle(color: Colors.white),
- ),
- ),
- ),
- ),
- SizedBox(width: 5),
- Expanded(
- child: Container(
- color: Colors.blueAccent,
- child: RaisedButton(
- // tried raisedbutton - height is not fully covered
- onPressed: () {},
- child: Text(
- "blah blah blah",
- style: TextStyle(color: Colors.white),
- ),
- ),
- ),
- ),
- ],
- ),
- ),
- ),
- ]);
- }
- }
Add Comment
Please, Sign In to add comment