map_provider 1.0.0 copy "map_provider: ^1.0.0" to clipboard
map_provider: ^1.0.0 copied to clipboard

outdated

A plugin for showing static map and calling Google Map application when clicked

example/lib/main.dart

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

import 'package:flutter/services.dart';
import 'package:map_provider/map_provider.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Center(
          child: Container(
              height: 200,
              width: 200,
              child: MapProvider(
                google_api_key: 'AIzaSyDjNpeyufzT81GAhQkCe85x83kxzfA7qbI' , ///your_api_key_here, otherwise this won\'t work
                width: 200,
                height: 200,
                latitude: '15.79286',
                longitude: '27.94013',
                zoom: 1,
              )
          ),
        ),
      ),
    );
  }
}
3
likes
30
pub points
0%
popularity

Publisher

unverified uploader

A plugin for showing static map and calling Google Map application when clicked

Homepage

License

unknown (LICENSE)

Dependencies

flutter, url_launcher

More

Packages that depend on map_provider