Column class widget that displays vertically its children.
import "package:flutter/material.dart";
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
// TODO: implement build
return MaterialApp(
home: Scaffold(
backgroundColor: Colors.teal,
body: SafeArea(
child: Column(
children: <Widget>[
Icon(
Icons.star,
color: Colors.amber,
size: 10,
),
Icon(
Icons.star,
color: Colors.amber,
size: 10,
),
Icon(
Icons.star,
color: Colors.amber,
size: 10,
),
Icon(
Icons.star,
color: Colors.amber,
size: 10,
),
Icon(
Icons.star,
color: Colors.amber,
size: 10,
),
],
),
),
),
);
}
}
Constructors
mainAxisAlignment:MainAxisAlignment.start,
(start,center,end,spaceAround,spaceBetween,spaceEvetly,and Values)
mainAxisSize: MainAxisSize.max,(max,min,Values)
crossAxisAlignment: CrossAxisAlignment.center,
(start,end,center,baseline,stretch,value)
TextDirection textDirection,
(ltr,rtl,value)
verticalDirection: VerticalDirection.down,
(down,up,Value)
TextBaseline textBaseline,
List<Widget> children: const <Widget>[]
})
Properties
Childrer
Comments
Post a Comment