galli_map 1.2.7 copy "galli_map: ^1.2.7" to clipboard
galli_map: ^1.2.7 copied to clipboard

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

Galli Map for Flutter #

pub package

Galli Map is a Flutter package that provides a customizable map widget for displaying Map with custom markers, lines, circles, and polygons. The widget supports zooming in and out, tapping on the map, and showing the user's current location.

Installation #

To use this package, add galli_map as a dependency in your pubspec.yaml file:

dependencies:
    galli_map: ${latest_version}
copied to clipboard

Then run flutter pub get to install the package.

Usage #

Import and add the Galli Map widget to your project

import 'package:galli_map/galli_map.dart';
... ...

  final GalliController controller = GalliController();

@override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: GalliMap(
           authKey: "authToken",
           controller: controller,
           zoom: 16,
           onTap: (tap) {},
           circles: [
             GalliCircle(
                 center: LatLng(27.12441, 67.12412),
                 radius: 32,
                 color: Colors.white,
                 borderStroke: 3,
                 borderColor: Colors.black)
           ],
           lines: [
             GalliLine(
                 line: [
                   LatLng(27.12441, 67.12412),
                   LatLng(27.12441, 67.12412),
                   LatLng(27.12441, 67.12412),
                   LatLng(27.12441, 67.12412)
                 ],
                 borderColor: Colors.blue,
                 borderStroke: 1,
                 lineColor: Colors.white,
                 lineStroke: 2)
           ],
           polygons: [
             GalliPolygon(polygon: [
               LatLng(27.12441, 67.12412),
               LatLng(27.12441, 67.12412),
               LatLng(27.12441, 67.12412),
               LatLng(27.12441, 67.12412)
             ], borderColor: Colors.red, borderStroke: 2, color: Colors.green),
           ],
           markers: [
             GalliMarker(
                 latlng: LatLng(27.12441, 67.12412),
                 markerWidget: const Icon(Icons.location_city))
           ],
         ),

    );
  }
copied to clipboard
7
likes
130
points
310
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.19 - 2025.04.03

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

Homepage

Documentation

API reference

License

MIT (license)

Dependencies

cached_network_image, device_preview, flutter, flutter_compass, flutter_cube, flutter_map, flutter_map_marker_cluster, flutter_svg, geolocator, http, latlong2, package_info_plus

More

Packages that depend on galli_map