Skip to content

Commit 4f3b1d6

Browse files
author
huangjiahong
committed
fix code
1 parent 3abef13 commit 4f3b1d6

File tree

3 files changed

+9
-22
lines changed

3 files changed

+9
-22
lines changed

example/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
.buildlog/
99
.history
1010
.svn/
11+
config/config.dart
1112

1213
# IntelliJ related
1314
*.iml

example/lib/index_page.dart

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,14 @@ class _IndexPageState extends State<IndexPage> {
7474
MaterialPageRoute(builder: (context) => BaseMapPage()),
7575
),
7676
),
77-
BTNWidgetClass('基础地图', '地图视角边界', () {}),
77+
BTNWidgetClass(
78+
'基础地图',
79+
'地图视角边界',
80+
() => Navigator.push(
81+
context,
82+
MaterialPageRoute(builder: (context) => BaseMapPage()),
83+
),
84+
),
7885
BTNWidgetClass('边界', '地图视角边界', () {}),
7986
BTNWidgetClass('Fragment', '如何制作一个Fragment', () {}),
8087
BTNWidgetClass('', '交互事件', () {}),

example/lib/main.dart

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,12 @@ class MyApp extends StatefulWidget {
1111
}
1212

1313
class _MyAppState extends State<MyApp> {
14-
// String _platformVersion = 'Unknown';
1514

1615
@override
1716
void initState() {
1817
super.initState();
19-
// initPlatformState();
2018
}
2119

22-
// Platform messages are asynchronous, so we initialize in an async method.
23-
// Future<void> initPlatformState() async {
24-
// String platformVersion;
25-
// // Platform messages may fail, so we use a try/catch PlatformException.
26-
// try {
27-
// platformVersion = await FlutterMinemap.platformVersion;
28-
// } on PlatformException {
29-
// platformVersion = 'Failed to get platform version.';
30-
// }
31-
//
32-
// // If the widget was removed from the tree while the asynchronous platform
33-
// // message was in flight, we want to discard the reply rather than calling
34-
// // setState to update our non-existent appearance.
35-
// if (!mounted) return;
36-
//
37-
// setState(() {
38-
// _platformVersion = platformVersion;
39-
// });
40-
// }
4120

4221
@override
4322
Widget build(BuildContext context) {

0 commit comments

Comments
 (0)