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

Common platform interface for the flutter_unified_map plugin (native Google Maps on Android, MapKit on iOS/macOS, flutter_map elsewhere).

example/example.dart

import 'dart:typed_data';
import 'dart:ui';

import 'package:flutter_unified_map_platform_interface/flutter_unified_map_platform_interface.dart';

/// The data classes every `flutter_unified_map` backend speaks: `flutter_unified_map_android`
/// (Google Maps SDK), `flutter_unified_map_apple` (MapKit) and `flutter_unified_map_flutter_map`
/// implement `UnifiedMapsPlatform` and exchange these `Platform*` objects with the core.
void main() {
  final icon = PlatformIcon(key: 'pin', bytes: Uint8List(0), logicalSize: const Size(24, 24), pixelRatio: 1);
  assert(icon.key == 'pin');
  assert(const LatLng(48.85, 2.35).latitude > 48);
}
0
likes
160
points
42
downloads

Documentation

Documentation
API reference

Publisher

verified publisherdartstack.dev

Weekly Downloads

Common platform interface for the flutter_unified_map plugin (native Google Maps on Android, MapKit on iOS/macOS, flutter_map elsewhere).

Homepage
Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, latlong2, meta, plugin_platform_interface

More

Packages that depend on flutter_unified_map_platform_interface