fair 0.3.0
fair: ^0.3.0 copied to clipboard

Flutter Fair is a package used to update widget tree dynamically.

pub github doc license

Flutter Fair #

Fair is a lightweight package for Flutter, which can be used to update widget tree dynamically. This package is still at an early stage.

We create Fair so we can dispatch UI changes to users as bundle(s), the way similar to React Native. With Flutter Fair integrated, you can publish your UI pages without waiting for the next release date of your App. Fair provides standard widget, it can be used as a new dynamic page or as part of existing Flutter page.

what-is-fair

Quick Start #

Use Flutter Fair require few steps. Add dependency inside pubspec.yaml.

dependencies:
  fair: ^0.2.0

Wrap your app with FairApp Widget.

void main() {
  runApp(
    FairApp(
      child: MaterialApp(home: App())
    ),
  );
}

Import a dynamic widget as FairWidget

FairWidget(
  type: 'hello_world',
  path: 'assets/bundle/hello_world.json',
)

Documentation #

For more details, please refer to https://fair.58.com

6
likes
100
pub points
62%
popularity

Publisher

hacktons.cn

Flutter Fair is a package used to update widget tree dynamically.

Homepage

Documentation

API reference

License

BSD (LICENSE)

Dependencies

fair_annotation, fair_version, flat_buffers, flutter, http, url_launcher

More

Packages that depend on fair