forked from zhujian1989/flutter_study
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchitecture_page.dart
54 lines (51 loc) · 1.65 KB
/
architecture_page.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import 'package:flutter/material.dart';
class ArchitecturePage extends StatefulWidget {
@override
State<StatefulWidget> createState() {
// TODO: implement createState
return new _ArchitecturePageState();
}
}
class _ArchitecturePageState extends State<ArchitecturePage> {
@override
Widget build(BuildContext context) {
// TODO: implement build
return new Scaffold(
appBar: new AppBar(
title: new Text('Architecture 学习'),
centerTitle: true,
),
body: new ListView(
children: <Widget>[
new Padding(
padding: const EdgeInsets.only(left: 10.0, top: 10.0, right: 10.0),
child: new RaisedButton(
textColor: Colors.black,
child: new Text('MVP(参考主页tab)'),
onPressed: () {
Navigator.of(context).pushReplacementNamed('/HomePage');
}),
),
new Padding(
padding: const EdgeInsets.only(left: 10.0, top: 10.0, right: 10.0),
child: new RaisedButton(
textColor: Colors.black,
child: new Text('Simple BLoC'),
onPressed: () {
Navigator.pushNamed(context, "/SearchPage");
}),
),
new Padding(
padding: const EdgeInsets.only(left: 10.0, top: 10.0, right: 10.0),
child: new RaisedButton(
textColor: Colors.black,
child: new Text('Simple Redux'),
onPressed: () {
Navigator.pushNamed(context, "/CountReduxPage");
}),
),
],
),
);
}
}