map_native 0.0.10

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • 89

map_native

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

Usage

To use this plugin, add map_native as a dependency in your pubspec.yaml file. Checkout the ./example folder to get started.

Features

Currently these basic features are implemented:

  • Drag panning
  • Pinch-zoom
  • Double click zoom
  • Location Picker

More features are yet to come.

Screenshot

MapView Screenshot

[0.0.1] - May 1, 2018.

  • This is an early preview version of map_native.

example/main.dart

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 inline0 = new Card(
        child: new Stack(
      children: [
        new MapView(
            initialLocation: const LatLong(35.68, 51.41),
            inititialZoom: 9.0),
        new Align(
            alignment: Alignment.bottomRight,
            child: new Padding(
                padding: const EdgeInsets.all(16.0),
                child: new FloatingActionButton(
                    backgroundColor: Colors.white,
                    onPressed: () {},
                    child: new Icon(Icons.my_location, color: Colors.purple))))
      ],
    ));

    final inline1 = new Card(
        child: new Stack(
      children: [
        new MapView(
            initialLocation: const LatLong(48.8566, 2.3522),
            inititialZoom: 9.0),
        new Align(
            alignment: Alignment.bottomRight,
            child: new Padding(
                padding: const EdgeInsets.all(16.0),
                child: new FloatingActionButton(
                    backgroundColor: Colors.white,
                    onPressed: () {},
                    child: new Icon(Icons.my_location, color: Colors.purple))))
      ],
    ));

    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 Column(children: [
              new Padding(
                  padding: const EdgeInsets.all(4.0),
                  child:
                      new AspectRatio(child: inline0, aspectRatio: 16.0 / 9.0)),
              new Padding(
                  padding: const EdgeInsets.all(4.0),
                  child:
                      new AspectRatio(child: inline1, aspectRatio: 16.0 / 9.0)),
            ])));
  }
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  map_native: ^0.0.10

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

Alternatively, your editor might support flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:map_native/map_native.dart';
  
Version Uploaded Documentation Archive
0.0.10 Aug 25, 2018 Go to the documentation of map_native 0.0.10 Download map_native 0.0.10 archive
0.0.8 May 7, 2018 Go to the documentation of map_native 0.0.8 Download map_native 0.0.8 archive
0.0.7 May 5, 2018 Go to the documentation of map_native 0.0.7 Download map_native 0.0.7 archive
0.0.6 May 3, 2018 Go to the documentation of map_native 0.0.6 Download map_native 0.0.6 archive
0.0.5 May 2, 2018 Go to the documentation of map_native 0.0.5 Download map_native 0.0.5 archive
0.0.4 May 2, 2018 Go to the documentation of map_native 0.0.4 Download map_native 0.0.4 archive
0.0.3 May 2, 2018 Go to the documentation of map_native 0.0.3 Download map_native 0.0.3 archive
0.0.2 May 1, 2018 Go to the documentation of map_native 0.0.2 Download map_native 0.0.2 archive
0.0.1 May 1, 2018 Go to the documentation of map_native 0.0.1 Download map_native 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
82
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
89
Learn more about scoring.

We analyzed this package on Sep 18, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.12.3
  • Flutter: 0.8.4

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Suggestions

Package is pre-v0.1 release.

While there is nothing inherently wrong with versions of 0.0.*, it usually means that the author is still experimenting with the general direction of the API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.19.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11
meta 1.1.6
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8