|
1 | 1 | import 'package:flutter_web/material.dart';
|
2 |
| -import 'dart:convert'; |
| 2 | + |
3 | 3 | import 'views/HomeAppBar.dart';
|
4 |
| -import 'views/TabButton.dart'; |
5 | 4 |
|
6 | 5 | void main() => runApp(MyApp());
|
7 | 6 |
|
@@ -32,34 +31,29 @@ class MyHomePage extends StatelessWidget {
|
32 | 31 | // fast, so that you can just rebuild anything that needs updating rather
|
33 | 32 | // than having to individually change instances of widgets.
|
34 | 33 | return Scaffold(
|
35 |
| - appBar: PreferredSize(child: HomeAppBar(title), preferredSize: Size.fromHeight(50)), |
36 |
| - body: Center( |
37 |
| - // Center is a layout widget. It takes a single child and positions it |
38 |
| - // in the middle of the parent. |
39 |
| - child: Column( |
40 |
| - // Column is also layout widget. It takes a list of children and |
41 |
| - // arranges them vertically. By default, it sizes itself to fit its |
42 |
| - // children horizontally, and tries to be as tall as its parent. |
43 |
| - // |
44 |
| - // Invoke "debug painting" (choose the "Toggle Debug Paint" action |
45 |
| - // from the Flutter Inspector in Android Studio, or the "Toggle Debug |
46 |
| - // Paint" command in Visual Studio Code) to see the wireframe for each |
47 |
| - // widget. |
48 |
| - // |
49 |
| - // Column has various properties to control how it sizes itself and |
50 |
| - // how it positions its children. Here we use mainAxisAlignment to |
51 |
| - // center the children vertically; the main axis here is the vertical |
52 |
| - // axis because Columns are vertical (the cross axis would be |
53 |
| - // horizontal). |
54 |
| - mainAxisAlignment: MainAxisAlignment.center, |
| 34 | + appBar: PreferredSize(child: HomeAppBar(title), preferredSize: Size.fromHeight(56)), |
| 35 | + body: ListView( |
55 | 36 | children: <Widget>[
|
56 |
| - Text( |
57 |
| - 'Hello, Google World!', |
58 |
| - style: TextStyle(color: Colors.blueAccent, fontFamily: labelFontFamily) |
| 37 | + Center( |
| 38 | + child: Text( |
| 39 | + "Hello GDG World.", |
| 40 | + style: TextStyle(fontFamily: labelFontFamily), |
| 41 | + ), |
| 42 | + ), |
| 43 | + Center( |
| 44 | + child: Text( |
| 45 | + "Hello GDG World.", |
| 46 | + style: TextStyle(fontFamily: labelFontFamily), |
| 47 | + ), |
| 48 | + ), |
| 49 | + Center( |
| 50 | + child: Text( |
| 51 | + "Hello GDG World.", |
| 52 | + style: TextStyle(fontFamily: labelFontFamily), |
| 53 | + ), |
59 | 54 | ),
|
60 | 55 | ],
|
61 | 56 | ),
|
62 |
| - ), // This trailing comma makes auto-formatting nicer for build methods. |
63 | 57 | );
|
64 | 58 | }
|
65 | 59 | }
|
0 commit comments