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:
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
Bash
flutter run -d android
Bash
flutter run
Runs on the connected device or emulator.
Grovs includes native code, so iOS and Android need platform setup too. See the Flutter Quick Start.