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

discontinued
outdated

Map widget for Flutter written in Dart. Supports Android and iOS.

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(),
        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(),
        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(8.0),
                  child: new Expanded(child: inline0)),
              new Padding(
                  padding: const EdgeInsets.all(8.0),
                  child: new Expanded(child: inline1)),
            ])));
  }
}
1
likes
0
pub points
12%
popularity

Publisher

unverified uploader

Map widget for Flutter written in Dart. Supports Android and iOS.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on map_native