main.dart
import 'package:flutter/material.dart';
void main() {
runApp(
MaterialApp(
theme: ThemeData(primarySwatch: Colors.green),
home: Scaffold(
appBar: AppBar(
title: const Text("Flutter - Column Full Width")
),
body: bodyContent()
)
)
);
}
bodyContent(){
return SizedBox(
width: double.infinity,
child: Column(
children: const [
Text("I am a text."),
Text("I am another text.")
]
)
);
}
More flutter tutorials
- flutter – GridView extent
- flutter – GridView child aspect ratio
- flutter – How to use Card
- flutter – Card elevation
- flutter – Card shadow
- flutter – How to make a Card clickable
- flutter – Card circle shape
- flutter – Card rounded image padding
- flutter – Card clip behavior
- flutter – Column background color
- flutter – Column spacing
- flutter – Column align left
- flutter – Column center
- flutter – Row center vertically
- flutter – Row background color