Skip to content

Installation

mehdi sohrabi edited this page Apr 12, 2020 · 3 revisions

Installation pub package

1. Depend on it

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

dependencies:
  background_locator: ^{latest_version}

2. Install it

You can install packages from the command line:

$ flutter pub get

3. Import it

Now in your Dart code, you can use:

import 'package:background_locator/background_locator.dart';