mapit 0.0.10 copy "mapit: ^0.0.10" to clipboard
mapit: ^0.0.10 copied to clipboard

MapIt allow you to use map in your app,It will help user to search any place on map and can place marker on map and also can move the user to current location on map.

example/lib/main.dart

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

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

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Mapit Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const HomeScreen(),
    );
  }
}

class HomeScreen extends StatelessWidget {
  const HomeScreen({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
          child: GoogleMapScreen(
            onPressBack: (){
              Navigator.pop(context);
            },
            address: (val){

            }, mapApiKey: 'YOUR_MAP_API_KEY',
          )),
    );
  }
}
8
likes
130
points
59
downloads

Publisher

unverified uploader

Weekly Downloads

MapIt allow you to use map in your app,It will help user to search any place on map and can place marker on map and also can move the user to current location on map.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, flutter_google_places_sdk, geoflutterfire2, google_maps_flutter, http, location, permission_handler

More

Packages that depend on mapit