flutter_maps_package 0.1.1 copy "flutter_maps_package: ^0.1.1" to clipboard
flutter_maps_package: ^0.1.1 copied to clipboard

A unified Flutter map package supporting Google Maps and OpenStreetMap (OSM) with offline tile caching, region/trail downloads, admin boundary scoping, and customizable widgets.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_maps_package/flutter_maps_package.dart';
import 'map_app.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  try {
    await FlutterMapsPackage.initialize(
      config: PackageConfig(
        googleMapsApiKey: const String.fromEnvironment(
          'GOOGLE_MAPS_API_KEY',
          defaultValue: 'YOUR_GOOGLE_MAPS_API_KEY',
        ),
        defaultProvider: MapProvider.osm,
      ),
    );
  } on InitializationException catch (e) {
    debugPrint('Init error: ${e.message}');
  }
  runApp(const MaterialApp(
    title: 'Maps App',
    debugShowCheckedModeBanner: false,
    home: MapApp(),
  ));
}
0
likes
135
points
134
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A unified Flutter map package supporting Google Maps and OpenStreetMap (OSM) with offline tile caching, region/trail downloads, admin boundary scoping, and customizable widgets.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

collection, connectivity_plus, dart_lz4, flutter, flutter_map, google_maps_flutter, http, latlong2, path_provider, sqflite

More

Packages that depend on flutter_maps_package