galli_vector_package 0.0.3 galli_vector_package: ^0.0.3 copied to clipboard
A Galli vector map widget that displays a map with custom markers, lines, circles and polygons.
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));
},
),
)),
);
}
}