map_native 0.0.2 copy "map_native: ^0.0.2" to clipboard
map_native: ^0.0.2 copied to clipboard

discontinued
outdated

Map widget for Flutter written in Dart.

map_native #

A flutter package to view a map widget on mobile apps. Supports Android and iOS.

MapView Screenshot

Usage #

To use this plugin, add map_native as a dependency in your pubspec.yaml file.


map_native: "0.0.2"

Example #


import 'package:flutter/material.dart';
import 'package:map_native/map_native.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final theme = Theme.of(context);

    return new MaterialApp(
      title: 'MapView Demo',
      theme: new ThemeData(
        primarySwatch: Colors.purple,
      ),
      home: new Scaffold(
          appBar: new AppBar(
            title: const Text("MapView Demo"),
          ),
          body: new Stack(
            children: [
              new MapView(),
              new Align(
                  alignment: Alignment.bottomRight,
                  child: new Padding(
                      padding: const EdgeInsets.all(16.0),
                      child: new FloatingActionButton(
                          backgroundColor: theme.cardColor,
                          onPressed: () {},
                          child: new Icon(Icons.my_location,
                              color: Theme.of(context).primaryColor))))
            ],
          )),
    );
  }
}

1
likes
0
pub points
13%
popularity

Publisher

unverified uploader

Map widget for Flutter written in Dart.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on map_native