galli_vector_package 0.0.2 galli_vector_package: ^0.0.2 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"),
)),
);
}
}