Skip to content

Commit

Permalink
Optimize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
lsaudon authored and johnpryan committed Apr 24, 2019
1 parent 3718122 commit c01888d
Show file tree
Hide file tree
Showing 13 changed files with 34 additions and 21 deletions.
13 changes: 7 additions & 6 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import 'package:flutter/material.dart';
import './pages/moving_markers.dart';

import './pages/animated_map_controller.dart';
import './pages/circle.dart';
import './pages/esri.dart';
import './pages/home.dart';
import './pages/map_controller.dart';
import './pages/animated_map_controller.dart';
import './pages/marker_anchor.dart';
import './pages/plugin_api.dart';
import './pages/polyline.dart';
import './pages/tap_to_add.dart';
import './pages/moving_markers.dart';
import './pages/offline_map.dart';
import './pages/on_tap.dart';
import './pages/circle.dart';
import './pages/overlay_image.dart';
import './pages/plugin_api.dart';
import './pages/polyline.dart';
import './pages/tap_to_add.dart';

void main() => runApp(new MyApp());

Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/animated_map_controller.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import '../widgets/drawer.dart';
import 'package:latlong/latlong.dart';

import '../widgets/drawer.dart';

class AnimatedMapControllerPage extends StatefulWidget {
static const String route = 'map_controller_animated';

Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/circle.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import '../widgets/drawer.dart';
import 'package:latlong/latlong.dart';

import '../widgets/drawer.dart';

class CirclePage extends StatelessWidget {
static const String route = 'circle';

Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/esri.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import 'package:latlong/latlong.dart';

import '../pages/tap_to_add.dart';
import '../widgets/drawer.dart';
import 'package:latlong/latlong.dart';

class EsriPage extends StatelessWidget {
static const String route = "esri";
Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/home.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import '../widgets/drawer.dart';
import 'package:latlong/latlong.dart';

import '../widgets/drawer.dart';

class HomePage extends StatelessWidget {
static const String route = '/';

Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/map_controller.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import '../widgets/drawer.dart';
import 'package:latlong/latlong.dart';

import '../widgets/drawer.dart';

class MapControllerPage extends StatefulWidget {
static const String route = 'map_controller';

Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/moving_markers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ import 'dart:async';

import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import '../widgets/drawer.dart';
import 'package:latlong/latlong.dart';

import '../widgets/drawer.dart';

class MovingMarkersPage extends StatefulWidget {
static const String route = '/moving_markers';

Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/offline_map.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import '../widgets/drawer.dart';
import 'package:latlong/latlong.dart';

import '../widgets/drawer.dart';

class OfflineMapPage extends StatelessWidget {
static const String route = '/offline_map';

Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/on_tap.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import '../widgets/drawer.dart';
import 'package:latlong/latlong.dart';

import '../widgets/drawer.dart';

class OnTapPage extends StatefulWidget {
static const String route = 'on_tap';

Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/overlay_image.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import '../widgets/drawer.dart';
import 'package:latlong/latlong.dart';

import '../widgets/drawer.dart';

class OverlayImagePage extends StatelessWidget {
static const String route = 'overlay_image';

Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/plugin_api.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_map/plugin_api.dart';
import '../widgets/drawer.dart';
import 'package:latlong/latlong.dart';

import '../widgets/drawer.dart';

class PluginPage extends StatelessWidget {
static const String route = "plugins";

Expand Down
3 changes: 2 additions & 1 deletion example/lib/pages/polyline.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import 'package:flutter/material.dart';
import 'package:flutter_map/flutter_map.dart';
import '../widgets/drawer.dart';
import 'package:latlong/latlong.dart';

import '../widgets/drawer.dart';

class PolylinePage extends StatelessWidget {
static const String route = "polyline";

Expand Down
9 changes: 5 additions & 4 deletions example/lib/widgets/drawer.dart
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import 'package:flutter/material.dart';

import '../pages/animated_map_controller.dart';
import '../pages/circle.dart';
import '../pages/esri.dart';
import '../pages/home.dart';
import '../pages/map_controller.dart';
import '../pages/marker_anchor.dart';
import '../pages/moving_markers.dart';
import '../pages/offline_map.dart';
import '../pages/on_tap.dart';
import '../pages/overlay_image.dart';
import '../pages/plugin_api.dart';
import '../pages/polyline.dart';
import '../pages/tap_to_add.dart';
import '../pages/on_tap.dart';
import '../pages/moving_markers.dart';
import '../pages/circle.dart';
import '../pages/overlay_image.dart';

Drawer buildDrawer(BuildContext context, String currentRoute) {
return new Drawer(
Expand Down

0 comments on commit c01888d

Please sign in to comment.