Skip to content

Instantly share code, notes, and snippets.

@Reprevise
Created December 8, 2019 23:46
Show Gist options
  • Save Reprevise/c1428bb9063e23bd269c1b05c60a3464 to your computer and use it in GitHub Desktop.
Save Reprevise/c1428bb9063e23bd269c1b05c60a3464 to your computer and use it in GitHub Desktop.
// Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: Container(
child: Column(
mainAxisSize: MainAxisSize.max,
children: [
Expanded(
child: Row(
mainAxisSize: MainAxisSize.max,
children: <Widget>[
Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Container(
height: 42.0,
width: 42.0,
color: Colors.red,
),
Container(
height: 42.0,
width: 42.0,
color: Colors.red,
),
Container(
height: 42.0,
width: 42.0,
color: Colors.red,
),
Container(
height: 42.0,
width: 42.0,
color: Colors.red,
),
],
),
],
),
),
],
),
),
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment