Guest User

MyWidget

a guest
Jun 13th, 2020
532
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.51 KB | None | 0 0
  1. class MyWidget extends StatelessWidget {
  2.   @override
  3.   Widget build(BuildContext context) {
  4.     return Column(children: <Widget>[
  5.       Expanded(
  6.         child: Container(
  7.           child: Text(' One step at a time'),
  8.         ),
  9.       ),
  10.       Expanded(
  11.         child: Container(
  12.           child: Row(
  13.             mainAxisSize: MainAxisSize.max,
  14.             mainAxisAlignment: MainAxisAlignment.start,
  15.             crossAxisAlignment: CrossAxisAlignment.stretch,
  16.             children: <Widget>[
  17.               Expanded(
  18.                 child: Container(
  19.                   color: Colors.blueAccent,
  20.                   child: RaisedButton(
  21.                     onPressed: () {},
  22.                     child: Text(
  23.                       "Blah blah blah blah blah blah blah Blah blah blah blah blah blah blah",
  24.                       style: TextStyle(color: Colors.white),
  25.                     ),
  26.                   ),
  27.                 ),
  28.               ),
  29.               SizedBox(width: 5),
  30.               Expanded(
  31.                 child: Container(
  32.                   color: Colors.blueAccent,
  33.                   child: RaisedButton(
  34.                     // tried raisedbutton - height is not fully covered
  35.                     onPressed: () {},
  36.                     child: Text(
  37.                       "blah blah blah",
  38.                       style: TextStyle(color: Colors.white),
  39.                     ),
  40.                   ),
  41.                 ),
  42.               ),
  43.             ],
  44.           ),
  45.         ),
  46.       ),
  47.     ]);
  48.   }
  49. }
Add Comment
Please, Sign In to add comment