main.dart
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
theme: ThemeData(primarySwatch: Colors.blue),
home: Scaffold(
appBar: AppBar(
title: const Text("Flutter - Column Space Around")
),
body: bodyContent()
)
)
);
}
bodyContent(){
return Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: [
Container(color: Colors.blueGrey.shade600, height: 85),
Container(color: Colors.cyan.shade600, height: 85),
Container(color: Colors.brown.shade600, height: 85),
Container(color: Colors.pink.shade600, height: 85),
Container(color: Colors.indigo.shade600, height: 85)
]
);
}
More flutter tutorials
- flutter – Column background color
- flutter – Column spacing
- flutter – Column height
- flutter – Column scrollable
- flutter – Column max height
- flutter – Column align right
- flutter – Column space between
- flutter – Column vertical direction
- flutter – Row space between
- flutter – Row height
- flutter – Row alignment
- flutter – Row center
- flutter – Row width
- flutter – Row center vertically
- flutter – Row background color