Git Product home page Git Product logo

google_map's Introduction

Flutter Map App

This Flutter app allows users to interact with a Google Map, add markers with labels, and save or remove them. The app utilizes the Provider package for state management.

Instructions to Run the App

  1. Make sure you have Flutter installed. If not, follow the official Flutter installation guide.

  2. Clone the repository to your local machine.

    git clone https://github.com/nehatanwar2698/google_map.git

  3. Navigate to the project directory.

    cd google_map

  4. Install dependencies.

    flutter pub get

  5. Run the app.

    flutter run

App Functionality

The app provides the following features:

  • Interactive Map: Display a Google Map with the ability to add markers on tap.

  • Marker Information: Tap on a marker to view information in a popup dialog.

  • Add Markers: Tap on Map to add a marker with a customizable label. A dialog will prompt you to enter the label.

  • Remove Markers: Press the "Remove Markers" button to clear all markers from the map. This action is irreversible.

  • Save Markers: Press the "Save Markers" button to persistently save added markers. The markers will be loaded on app restart.

Additional Notes

  • The app uses the Provider package for state management, separating the UI from the data and logic.

  • Markers are saved using SharedPreferences for persistence, allowing the app to remember markers between sessions.

  • The code is organized into multiple files for better readability and maintainability.

  • The default location on the map is set to coordinates (28.4595, 77.0266).

  • Ensure that you have an internet connection to load the Google Map.

google_map's People

Watchers

Neha Tanwar avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.