Skip to content

Instantly share code, notes, and snippets.

@josenaves
Created June 2, 2019 19:05
Show Gist options
  • Save josenaves/61fd84fba75f08a8dcd34b29629317aa to your computer and use it in GitHub Desktop.
Save josenaves/61fd84fba75f08a8dcd34b29629317aa to your computer and use it in GitHub Desktop.
The Complete Flutter Development Bootcamp with Dart - Flutter Layouts Challenge - Section 6 - 34
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,
),
Container(
width: 100.0,
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Container(
height: 100.0,
color: Colors.yellow,
),
Container(
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