diff --git a/lib/main.dart b/lib/main.dart index 4ab0e10..2b3e270 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -43,75 +43,83 @@ class HelloWorldApp extends StatelessWidget { Expanded( child: Row( children: [ - Container( - height: 200, - width: 300, - decoration: BoxDecoration( - color: Colors.black26, - ), - alignment: Alignment.center, - margin: EdgeInsets.all(20), - child: Text( - 'Hello world', - textDirection: TextDirection.ltr, - style: TextStyle( - fontSize: 20, - color: Colors.white, - fontWeight: FontWeight.bold, + Expanded( + child: Container( + height: 200, + width: 300, + decoration: BoxDecoration( + color: Colors.black26, + ), + alignment: Alignment.center, + margin: EdgeInsets.all(20), + child: Text( + 'Hello world', + textDirection: TextDirection.ltr, + style: TextStyle( + fontSize: 20, + color: Colors.white, + fontWeight: FontWeight.bold, + ), ), ), ), - Container( - height: 200, - width: 300, - decoration: BoxDecoration( - color: Colors.black26, - ), - alignment: Alignment.center, - margin: EdgeInsets.all(20), - child: Text( - 'Hello world', - textDirection: TextDirection.ltr, - style: TextStyle( - fontSize: 20, - color: Colors.white, - fontWeight: FontWeight.bold, + Expanded( + child: Container( + height: 200, + width: 300, + decoration: BoxDecoration( + color: Colors.black26, + ), + alignment: Alignment.center, + margin: EdgeInsets.all(20), + child: Text( + 'Hello world', + textDirection: TextDirection.ltr, + style: TextStyle( + fontSize: 20, + color: Colors.white, + fontWeight: FontWeight.bold, + ), ), ), ), - Container( - height: 200, - width: 300, - decoration: BoxDecoration( - color: Colors.black26, - ), - alignment: Alignment.center, - margin: EdgeInsets.all(20), - child: Text( - 'Hello world', - textDirection: TextDirection.ltr, - style: TextStyle( - fontSize: 20, - color: Colors.white, - fontWeight: FontWeight.bold, + Expanded( + child: Container( + height: 200, + width: 300, + decoration: BoxDecoration( + color: Colors.black26, + ), + alignment: Alignment.center, + margin: EdgeInsets.all(20), + child: Text( + 'Hello world', + textDirection: TextDirection.ltr, + style: TextStyle( + fontSize: 20, + color: Colors.white, + fontWeight: FontWeight.bold, + ), ), ), ), - Container( - height: 200, - width: 300, - decoration: BoxDecoration( - color: Colors.black26, - ), - alignment: Alignment.center, - margin: EdgeInsets.all(20), - child: Text( - 'Hello world', - textDirection: TextDirection.ltr, - style: TextStyle( - fontSize: 20, - color: Colors.white, - fontWeight: FontWeight.bold, + Expanded( + child: Container( + height: 200, + width: 300, + decoration: BoxDecoration( + color: Colors.black26, + ), + alignment: Alignment.center, + margin: EdgeInsets.all(20), + child: Text( + 'Hello world', + textDirection: TextDirection.ltr, + style: TextStyle( + fontSize: 20, + color: Colors.white, + fontWeight: FontWeight.bold, + ), ), ), ),