Skip to main content
Version: 0.1.0

Add Dependency

Use the package from pub.dev

Add maplibre to your project by running this command:

flutter pub add maplibre

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

pubspec.yaml
dependencies:
maplibre: ^0.1.0

Ensure that you use the documentation of the right version. Click here to get to docs of the latest released version. 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 is not considered stable and shouldn't be used in production systems.

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