galli_vector_package 0.0.4 copy "galli_vector_package: ^0.0.4" to clipboard
galli_vector_package: ^0.0.4 copied to clipboard

A Galli vector map widget that displays a map with custom markers, lines, circles and polygons.

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      debugShowCheckedModeBanner: false,
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: Scaffold(
          body: SafeArea(
        child: GalliMap(
          size: (
            width: MediaQuery.sizeOf(context).width,
            height: MediaQuery.sizeOf(context).height
          ),
          authToken: "token",
          onMapCreated: (c) {
            c.animateCamera(
                CameraUpdate.zoomTo(
                  10,
                ),
                duration: const Duration(seconds: 5));
          },
        ),
      )),
    );
  }
}
0
likes
150
points
54
downloads

Publisher

unverified uploader

Weekly Downloads

A Galli vector map widget that displays a map with custom markers, lines, circles and polygons.

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_cube, http, maplibre_gl

More

Packages that depend on galli_vector_package