/
main.dart
35 lines (32 loc) · 944 Bytes
/
main.dart
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
import 'package:example/layout_bar.dart';
import 'package:flutter/material.dart';
import 'package:layout/layout.dart';
import 'example.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return Layout(
child: MaterialApp(
title: 'Flutter Demo',
debugShowCheckedModeBanner: false,
theme: ThemeData(
appBarTheme: AppBarTheme(
color: Colors.white,
),
scaffoldBackgroundColor: Colors.grey[200],
primarySwatch: Colors.blue,
),
builder: (context, child) {
return Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [Expanded(child: child!), LayoutBar()],
);
},
home: MyHomePage(title: 'Layout')),
);
}
}