fair 4.0.0 copy "fair: ^4.0.0" to clipboard
fair: ^4.0.0 copied to clipboard

PlatformAndroidiOS

Flutter Fair is a package used to update widget dynamically.

pub github doc license

Flutter Fair #

Fair is a lightweight package for Flutter, which can be used to update widget 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: ^4.0.0
copied to clipboard

Wrap your app with FairApp Widget.

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  
  FairApp.runApplication(
    FairApp(
      child: MaterialApp(home: App())
    )
  );
}
copied to clipboard

Import a dynamic widget as FairWidget

FairWidget(
  name: 'hello_world',
  path: 'assets/bundle/lib_hello_world.json',
)
copied to clipboard

Documentation #

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

43
likes
130
points
142
downloads

Publisher

verified publisherhacktons.cn

Weekly Downloads

2024.10.02 - 2025.04.16

Flutter Fair is a package used to update widget dynamically.

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

fair_annotation, fair_version, ffi, flat_buffers, flutter, http, url_launcher

More

Packages that depend on fair