Skip to content

Instantly share code, notes, and snippets.

@5omar5
Created March 16, 2020 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 5omar5/fc6959dd0b81ad18e928949231db3253 to your computer and use it in GitHub Desktop.
Save 5omar5/fc6959dd0b81ad18e928949231db3253 to your computer and use it in GitHub Desktop.
u2_a2
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Flexible(
child: Container(color: Colors.blue, height: 100, width: 100),
),
Flexible(
child: Container(color: Colors.red, height: 200),
),
Flexible(
child: Container(color: Colors.amber, height: 100,),
)
],
),
));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment