Skip to content

Repository files navigation

pub packageBuy Me A CoffeeDonate

features

A Flutter package to help with scoping features for a project.

Online Demo: https://rodydavis.github.io/features/

Getting Started

Create a feature:

Feature _feature =Feature('counter');

Enable/Disable a feature:

Feature _feature.enabled =false;
Feature _feature.enabled =true;

Use a feature builder to react to changes:

floatingActionButton:FeatureBuilder(
feature: _counterFeature,
hideOnInactive:true,
builder: (context, enabled, child) =>FloatingActionButton(
onPressed: _incrementCounter,
tooltip:'Increment',
child:Icon(Icons.add),
),
),

Use a feature provider:

Features(
items:<Feature>[],
child:Container(),
)
final _features =Features.of(context);

About

Flutter scoped feature manager

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages