flutter_map_location 0.7.0+1 flutter_map_location: ^0.7.0+1 copied to clipboard
flutter_map plugin to request and display the users location and heading on the map.
import 'package:flutter/material.dart';
import 'pages/custom.dart';
import 'pages/default.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Location Examples',
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
home: DefaultPage(),
routes: <String, WidgetBuilder>{
CustomPage.route: (_) => CustomPage(),
});
}
}