Docs
grovs.io Start for free

Integrating a pub.dev package

Add the Grovs SDK to your Flutter project from pub.dev.

1
Add the package
Bash
flutter pub add grovs_flutter_plugin:^3.1.1

This updates pubspec.yaml and fetches the package. To do it by hand, add the package under dependencies and run flutter pub get. The plugin needs Flutter 3.38.0 or later.

2
Check pubspec.yaml

grovs_flutter_plugin should be listed under dependencies:

YAML
dependencies:
  flutter:
    sdk: flutter
  grovs_flutter_plugin: ^3.1.1
3
Import the package
Dart
import 'package:grovs_flutter_plugin/grovs.dart';
import 'package:grovs_flutter_plugin/models/grovs_link.dart';

The first import provides the Grovs class and the in-app message types. The second provides link and error types such as GenerateLinkParams, DeeplinkDetails and GrovsException.

4
Run the app
Bash
flutter run -d ios

Grovs includes native code, so iOS and Android need platform setup too. See the Flutter Quick Start.

Last updated 2026-10-27
Was this page helpful?