atlas 1.0.10 copy "atlas: ^1.0.10" to clipboard
atlas: ^1.0.10 copied to clipboard

An extensible map abstraction for Flutter with support for multiple map providers

example/main.dart

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

/// import your `AtlasProvider` of choice
// import 'package:custom_atlas/custom_atlas.dart';

void main() {
  /// Set your `AtlasProvider` instance
  // AtlasProvider.instance = CustomAtlas();
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Atlas Sample Demo',
      home: AtlasSample(),
    );
  }
}

class AtlasSample extends StatelessWidget {
  final CameraPosition _initialCameraPosition = CameraPosition(
    target: LatLng(
      latitude: 37.42796133580664,
      longitude: -122.085749655962,
    ),
    zoom: 12,
  );

  @override
  Widget build(BuildContext context) {
    /// Use `Atlas` as your Map Widget
    return Scaffold(
      body: Atlas(
        initialCameraPosition: _initialCameraPosition,
      ),
    );
  }
}
23
likes
150
points
82
downloads

Publisher

verified publisherbmwtech.dev

Weekly Downloads

An extensible map abstraction for Flutter with support for multiple map providers

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on atlas