Skip to main content
Version: 0.0.x

Add Dependency

Use the package from pub.dev

Add maplibre to your project by running this command:

flutter pub add maplibre

or add it directly as a dependency to your pubspec.yaml file and run flutter pub get:

pubspec.yaml
dependencies:
maplibre: ^0.0.1 # use the latest version found on pub.dev

You can find the latest version of the package on pub.dev or here:

Pub Version

Using the development version

If you want to have access to the latest features and changes, you can use the package directly from GitHub.

warning

Note, that the development version shouldn't be used in production systems and is considered less stable.

This is how you include the package directly from GitHub. Either use it in your dependecies: or temporarily override it inside the dependency_overrides: list.

pubspec.yaml
dependencies:
maplibre:
git:
url: https://github.com/josxha/flutter-maplibre
ref: main # or a specific commit hash