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

outdated

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

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:latlong/latlong.dart';
import 'package:map/map.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final map = Map(
      initialLocation: LatLng(35.68, 51.41),
      inititialZoom: 9.0,
    );

    return MaterialApp(
      title: 'Map Demo',
      theme: ThemeData(
        primarySwatch: Colors.purple,
      ),
      home: Scaffold(
        appBar: AppBar(
          title: const Text("Map Demo"),
        ),
        body: map,
        floatingActionButton: FloatingActionButton(
          child: Icon(Icons.my_location),
          onPressed: () {},
        ),
      ),
    );
  }
}
299
likes
0
pub points
93%
popularity

Publisher

verified publisherpwa.ir

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, latlong

More

Packages that depend on map