-
-
Notifications
You must be signed in to change notification settings - Fork 159
/
main.dart
41 lines (36 loc) · 1.22 KB
/
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
36
37
38
39
40
41
import 'package:flutter/material.dart';
import 'home.dart';
import 'pages/bigdata.dart';
import 'pages/debug.dart';
import 'pages/echarts.dart';
import 'pages/interaction_stream_dynamic.dart';
import 'pages/interval.dart';
import 'pages/line_area_point.dart';
import 'pages/polygon_custom.dart';
import 'pages/animation.dart';
final routes = {
'/': (context) => const HomePage(),
'/examples/Interval': (context) => IntervalPage(),
'/examples/Line,Area,Point': (context) => LineAreaPointPage(),
'/examples/Polygon,Custom': (context) => PolygonCustomPage(),
'/examples/Interaction Stream, Dynamic': (context) =>
const InteractionStreamDynamicPage(),
'/examples/Animation': (context) => const AnimationPage(),
'/examples/Bigdata': (context) => BigdataPage(),
'/examples/Echarts': (context) => EchartsPage(),
'/examples/Debug': (context) => DebugPage(),
};
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primarySwatch: Colors.blue,
),
routes: routes,
initialRoute: '/',
);
}
}
void main() => runApp(const MyApp());