Flip app features on and off in real time — no rebuilds, no redeploys.
A small Flutter shopping demo wired with BLoC + Flagsmith (or mock mode if you don’t have an account). Toggle the AI Assistant card and Express Checkout button live from a Dev Settings drawer.
Feature flags let you ship dark and turn features on when you’re ready — for yourself, a beta group, or everyone. This project shows a clean way to do that in Flutter:
Repo → BLoC → UI
Remote (or mock) flags flow into state, and the UI reacts. Reviewers can override anything locally without touching Flagsmith.
flutter pub get
flutter runNo API key needed. Mock mode uses sensible defaults (AI Assistant on, Express Checkout off).
Open the tune icon → flip flags, try light/dark theme, you’re done.
- Create an environment and add:
is_ai_assistant_enabledis_express_checkout_enabled
- Run with your key:
flutter run --dart-define=FLAGSMITH_API_KEY=your_env_key| Piece | Role |
|---|---|
FeatureFlagRepository |
Flagsmith + offline fallback + local overrides |
FeatureFlagBloc |
Loads flags and pushes updates to the UI |
| Home + Dev Settings | Conditionally renders features; instant overrides |
| Light / dark theme | Tiny theme layer with a System / Light / Dark toggle |
flutter testThat’s it — keep it running, flip a switch, watch the UI change.