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.dartand set the value ofMOBILE_SDK_KEYto your LaunchDarkly mobile key. If there is an existing boolean feature flag in your LaunchDarkly project that you want to evaluate, setFEATURE_FLAG_KEYto 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 runto start the application on the device. -
The application will show the value of the flag
FEATURE_FLAG_KEYin the UI.