Warning
This repository has been superseded by by an example within the SDK repository.
We've built a simple Flutter application that demonstrates how LaunchDarkly's SDK works.
Below, you'll find the basic build procedure, but for more comprehensive instructions, you can visit the Flutter SDK reference guide.
-
Make sure you have Flutter SDK installed.
-
Edit
lib/main.dart
and set the value ofMOBILE_SDK_KEY
to your LaunchDarkly mobile key. If there is an existing boolean feature flag in your LaunchDarkly project that you want to evaluate, setFEATURE_FLAG_KEY
to the flag key. -
Open an iOS simulator instance, Android emulator instance, or connect a physical device to run the application on.
-
On the command line, run
flutter run
to start the application on the device. -
The application will show the value of the flag
FEATURE_FLAG_KEY
in the UI.