@@ -33,9 +33,11 @@ import './pages/tile_loading_error_handle.dart';
33
33
import './pages/widgets.dart' ;
34
34
import './pages/wms_tile_layer.dart' ;
35
35
36
- void main () => runApp (MyApp ());
36
+ void main () => runApp (const MyApp ());
37
37
38
38
class MyApp extends StatelessWidget {
39
+ const MyApp ({Key ? key}) : super (key: key);
40
+
39
41
// This widget is the root of your application.
40
42
@override
41
43
Widget build (BuildContext context) {
@@ -44,40 +46,42 @@ class MyApp extends StatelessWidget {
44
46
theme: ThemeData (
45
47
primarySwatch: mapBoxBlue,
46
48
),
47
- home: HomePage (),
49
+ home: const HomePage (),
48
50
routes: < String , WidgetBuilder > {
49
- NetworkTileProviderPage .route: (context) => NetworkTileProviderPage (),
50
- WidgetsPage .route: (context) => WidgetsPage (),
51
- TapToAddPage .route: (context) => TapToAddPage (),
52
- EsriPage .route: (context) => EsriPage (),
53
- PolylinePage .route: (context) => PolylinePage (),
54
- MapControllerPage .route: (context) => MapControllerPage (),
51
+ NetworkTileProviderPage .route: (context) =>
52
+ const NetworkTileProviderPage (),
53
+ WidgetsPage .route: (context) => const WidgetsPage (),
54
+ TapToAddPage .route: (context) => const TapToAddPage (),
55
+ EsriPage .route: (context) => const EsriPage (),
56
+ PolylinePage .route: (context) => const PolylinePage (),
57
+ MapControllerPage .route: (context) => const MapControllerPage (),
55
58
AnimatedMapControllerPage .route: (context) =>
56
- AnimatedMapControllerPage (),
57
- MarkerAnchorPage .route: (context) => MarkerAnchorPage (),
58
- PluginPage .route: (context) => PluginPage (),
59
- PluginScaleBar .route: (context) => PluginScaleBar (),
60
- PluginZoomButtons .route: (context) => PluginZoomButtons (),
61
- OfflineMapPage .route: (context) => OfflineMapPage (),
62
- OnTapPage .route: (context) => OnTapPage (),
63
- MarkerRotatePage .route: (context) => MarkerRotatePage (),
64
- MovingMarkersPage .route: (context) => MovingMarkersPage (),
65
- CirclePage .route: (context) => CirclePage (),
66
- OverlayImagePage .route: (context) => OverlayImagePage (),
67
- PolygonPage .route: (context) => PolygonPage (),
68
- SlidingMapPage .route: (_) => SlidingMapPage (),
69
- WMSLayerPage .route: (context) => WMSLayerPage (),
70
- CustomCrsPage .route: (context) => CustomCrsPage (),
71
- LiveLocationPage .route: (context) => LiveLocationPage (),
72
- TileLoadingErrorHandle .route: (context) => TileLoadingErrorHandle (),
73
- TileBuilderPage .route: (context) => TileBuilderPage (),
74
- InteractiveTestPage .route: (context) => InteractiveTestPage (),
75
- ManyMarkersPage .route: (context) => ManyMarkersPage (),
76
- StatefulMarkersPage .route: (context) => StatefulMarkersPage (),
77
- MapInsideListViewPage .route: (context) => MapInsideListViewPage (),
78
- ResetTileLayerPage .route: (context) => ResetTileLayerPage (),
79
- EPSG4326Page .route: (context) => EPSG4326Page (),
80
- MaxBoundsPage .route: (context) => MaxBoundsPage (),
59
+ const AnimatedMapControllerPage (),
60
+ MarkerAnchorPage .route: (context) => const MarkerAnchorPage (),
61
+ PluginPage .route: (context) => const PluginPage (),
62
+ PluginScaleBar .route: (context) => const PluginScaleBar (),
63
+ PluginZoomButtons .route: (context) => const PluginZoomButtons (),
64
+ OfflineMapPage .route: (context) => const OfflineMapPage (),
65
+ OnTapPage .route: (context) => const OnTapPage (),
66
+ MarkerRotatePage .route: (context) => const MarkerRotatePage (),
67
+ MovingMarkersPage .route: (context) => const MovingMarkersPage (),
68
+ CirclePage .route: (context) => const CirclePage (),
69
+ OverlayImagePage .route: (context) => const OverlayImagePage (),
70
+ PolygonPage .route: (context) => const PolygonPage (),
71
+ SlidingMapPage .route: (_) => const SlidingMapPage (),
72
+ WMSLayerPage .route: (context) => const WMSLayerPage (),
73
+ CustomCrsPage .route: (context) => const CustomCrsPage (),
74
+ LiveLocationPage .route: (context) => const LiveLocationPage (),
75
+ TileLoadingErrorHandle .route: (context) =>
76
+ const TileLoadingErrorHandle (),
77
+ TileBuilderPage .route: (context) => const TileBuilderPage (),
78
+ InteractiveTestPage .route: (context) => const InteractiveTestPage (),
79
+ ManyMarkersPage .route: (context) => const ManyMarkersPage (),
80
+ StatefulMarkersPage .route: (context) => const StatefulMarkersPage (),
81
+ MapInsideListViewPage .route: (context) => const MapInsideListViewPage (),
82
+ ResetTileLayerPage .route: (context) => const ResetTileLayerPage (),
83
+ EPSG4326Page .route: (context) => const EPSG4326Page (),
84
+ MaxBoundsPage .route: (context) => const MaxBoundsPage (),
81
85
},
82
86
);
83
87
}
0 commit comments