Created
March 14, 2020 11:19
-
-
Save Liyuu8/701b7b708922fbb679a3095fc13fbd53 to your computer and use it in GitHub Desktop.
Flutter Layouts Challenge [Section 6: MiCard]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'package:flutter/material.dart'; | |
void main() { | |
runApp(MyApp()); | |
} | |
class MyApp extends StatelessWidget { | |
@override | |
Widget build(BuildContext context) { | |
return MaterialApp( | |
home: Scaffold( | |
backgroundColor: Colors.teal, | |
body: SafeArea( | |
child: Row( | |
mainAxisAlignment: MainAxisAlignment.spaceBetween, | |
children: <Widget>[ | |
Container( | |
width: 100.0, | |
color: Colors.red, | |
), | |
Column( | |
mainAxisAlignment: MainAxisAlignment.center, | |
children: <Widget>[ | |
Container( | |
width: 100.0, | |
height: 100.0, | |
color: Colors.yellow, | |
), | |
Container( | |
width: 100.0, | |
height: 100.0, | |
color: Colors.green, | |
) | |
], | |
), | |
Container( | |
width: 100.0, | |
color: Colors.blue, | |
), | |
], | |
), | |
), | |
), | |
); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment