flutter_map_location_marker 1.0.0-nullsafety.0 copy "flutter_map_location_marker: ^1.0.0-nullsafety.0" to clipboard
flutter_map_location_marker: ^1.0.0-nullsafety.0 copied to clipboard

outdated

A flutter map plugin for displaying device current location.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'page/center_fab_example.dart';
import 'page/customize_marker_example.dart';
import 'page/minimum_example.dart';
import 'page/old_style_example.dart';

void main() {
  runApp(
    MaterialApp(
      home: Home(),
    ),
  );
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: ListView(
        children: [
          ListTile(
            title: Text('Center Fab Example'),
            onTap: () {
              Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (BuildContext context) => CenterFabExample(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('Customize Marker Example'),
            onTap: () {
              Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (BuildContext context) => CustomizeMarkerExample(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('Minimum Example'),
            onTap: () {
              Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (BuildContext context) => MinimumExample(),
                ),
              );
            },
          ),
          ListTile(
            title: Text('Old Style Example'),
            onTap: () {
              Navigator.push(
                context,
                MaterialPageRoute(
                  builder: (BuildContext context) => OldStyleExample(),
                ),
              );
            },
          ),
        ],
      ),
    );
  }
}