Demonstrates how to use the analytics plugin.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter development, view the online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
-
Make sure you have Flutter SDK installed.
-
The example app showcases the Firebase integration, so you will need to get your own Firebase Project. Create an account and a new project here.
-
Follow the instructions to add Firebase to your Flutter app.
- It will require you to install Firebase CLI.
- At the root of the example app, run the
flutterfire configure --project={your-project-id}
command. - You can skip the step for "Initialize Firebase and add plugins"
-
On your Segment Workspace create your own Flutter source
-
Set your Segment
WriteKey
inconfig.dart
-
Run
flutter run
on the example