A Flutter package to manage feature flagging.

Overview

feature_flags

This package simply allows you to activate dynamically functionnalities of your app.

Usage

Setup

Wrap your app's widget in a Features widget.

Features(
    child: MaterialApp(
        /// ...
    ),
);

Testing if a feature is enabled

To test is a feature is currently enabled, use the Features.isFeatureEnabled function with a unique functionnality identifier.

if (Features.isFeatureEnabled(context, 'DECREMENT')) {
    /// The 'DECREMENT' feature is enabled
}

Enable or disable a feature

From the Features widget

By updating the flags from the Features widget.

Features(
    flags: [ 'DECREMENT' ],
    child: MaterialApp(
        /// ...
    ),
);

Enabling it locally from code

You can activate a feature by calling the Features.setFeature function. The feature flag is saved into shared preferences and is persisted between sessions.

Features.setFeature(
    context,
    'DECREMENT',
    true,
);

Using the debug view

The debug view allow your users to activate or deactivate any dynamic feature.

This may be useful during developpment, but it should be used carefuly.

DebugFeatures.show(
    context,
    availableFeatures: [
        Feature('DECREMENT', name: 'Decrement'),
        Feature('RESET', name: 'Reset'),
    ],
);
You might also like...

A personal app to track and manage your expenses.

A personal app to track and manage your expenses.

👝 Batua 👝 A Personal App to track and manage your expenses! Batua is the best money manager and daily expense tracker to automatically and securely

Dec 22, 2022

A GUI to quickly manage your WSL2 instances

A GUI to quickly manage your WSL2 instances

WSL2 Distro Manager A quick way to manage your WSL2 instances with a GUI. Install This app is available on the Windows Store or as a direct download f

Dec 29, 2022

Android application that manage all the information of Pandemic Covid-19 in Vietnam.

COVID-19 Health-care Management Android application that manage all the information of Pandemic Covid-19 in Vietnam. Overview Here is the detail and t

Dec 4, 2021

BankGit helps you manage your account and transactions more efficiently by breaking your account into branches for various purposes and then making transactions directly from them.

BankGit helps you manage your account and transactions more efficiently by breaking your account into branches for various purposes and then making transactions directly from them.

Bank Git Web Hosted Here : https://bank-management-45848.web.app/ Bank Git is an application built with Flutter and Firebase to help you manage your b

Dec 26, 2022

Simple way to manage database.

database_manager (Developer Preview) Simple way to manage database. Version control and application's database schema. Simplify CRUD operations. Insta

Jul 14, 2021

WeCare is a logistics management platform that can manage everything like delivering goods in time and in a preferable cost.

wecare_logistics A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Nov 10, 2022

Para-managment: The app is to monitor and manage your personal finance

Para-managment: The app is to monitor and manage your personal finance

Pare | پارە Pare App Demo The app is to monitor and manage your personal finance You have a category for each category you have category name, icon, a

Mar 20, 2022

An App To manage all your tasks with firebase backend

An App To manage all your tasks with firebase backend

🔥 Todo App An App To manage all your tasks with firebase backend. Star ⭐ the repo if you like what you see 😉 . ✨ Features : Login/SignUp with Fireba

Dec 12, 2022

A package that lets you include a cool, nice looking and validated Password TextFormField in your app to enhance user experience. The package is fully & easily modifiable.

A package that lets you include a cool, nice looking and validated Password TextFormField in your app to enhance user experience. The package is fully & easily modifiable.

A package that lets you include a cool, nice looking and validated Password TextFormField in your app to enhance user experience. The package is fully

Jan 1, 2023
Owner
Aloïs Deniel
Flutter Freelance
Aloïs Deniel
This is a smart farming app which helps farmers to remotely monitor their crop and take necessary actions. It also has a feature called disease detection.

Smart-Farming-App This is a smart farming app which helps farmers to remotely monitor their crop and take necessary actions. It has features called di

Nihar Shah 2 Jul 9, 2022
Feature-rich and easy-to-use Minecraft Fallout server bot.

更好的 Minecraft 廢土伺服器機器人 ?? 介紹 這是個具有許多功能的廢土機器人,且完全免費與開源 另一大特色就是具有容易操作的界面,而不是傳統的小黑窗,讓任何人都能夠輕鬆使用~ 詳細功能請看 這裡 祝您使用愉快! 立即下載 ?? 下載 本軟體支援 Windows、Linux、macOS 作

菘菘 9 Dec 23, 2022
FileManager is a wonderful widget that allows you to manage files and folders, pick files and folders, and do a lot more. Designed to feel like part of the Flutter framework.

File Manager FileManager is a wonderful widget that allows you to manage files and folders, pick files and folders, and do a lot more. Designed to fee

Devs On Flutter 52 Dec 30, 2022
A Flutter application to easily manage and control your Algorand nodes.

Algorand Node Companion App Algorand Node Companion App is a mobile, web and desktop application that can manage, operate and track the status of your

Tomas Verhelst 15 Oct 18, 2022
About This is Personal Expenses Planner. You can add your expenses in to the app and manage your transaction. and you can see How much did you spend on which day. I developed this project using flutter.

expense_planner A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started

Darshit Rudani 5 Jul 6, 2022
Manage desktop space easily with this simple Flutter app.

dspace A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if this i

null 0 Nov 12, 2021
The Clean architecture and manage the Flutter project to make scalable with a modularization approach

Clean architecture sample project Flutter template project to explore the Clean architecture and manage the Flutter project to make scalable with a mo

null 5 Oct 18, 2022
A Flutter plugin to retrieve and manage contacts on Android and iOS devices. Maintainer: @lukasgit

contacts_service A Flutter plugin to access and manage the device's contacts. Usage To use this plugin, add contacts_service as a dependency in your p

Lukas Dickie 166 Dec 28, 2022
A Flutter app integrated with Firebase🔥 to manage warehouse's 🏬 stock

Warehouse Management ?? An application to manage the inventory in multiple warehouses of a business. The products will be stored in groups and user ca

Hevesh Lakhwani 21 Nov 7, 2022
A simple flutter app to manage the score in a match of darts

DartCounter An application to keep track of a Dart match It is currently made for Windows-only use, but you can build it for any Platform if you want,

bafto 1 Jun 1, 2022