-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path7 List View
43 lines (41 loc) · 978 Bytes
/
7 List View
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text("Column")
),
// Column kebawah
//Row kesamping
//Stack kearah depan
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
Container(
width: 300,
height: 100,
color: Colors.amber,
),
Container(
width: 400,
height: 100,
color: Colors.blueAccent,
),
Container(
width: 100,
height: 100,
color: Colors.black,
),
],
),
),
);
}
}