Skip to content

Installation

Valentin Tahon edited this page Jul 11, 2022 · 2 revisions

1. Depend on it

Add this to your project's pubspec.yaml file:

dependencies:
  background_locator_2: ^{latest_version}

2. Install it

You can install packages from the command line:

$ flutter pub get

If for any reason the package doesn't seem to work after importing, use these command lines:

$ flutter clean
$ flutter pub upgrade

3. Import it

Now in your Dart code, you can use:

import 'package:background_locator_2/background_locator.dart';
Clone this wiki locally