Flutter Fair
A Flutter package used to update widget tree dynamically
Lightweight Runtime
The core runtime contains only 2.6k lines of Dart. No worry about size.
Seamless Integration
Coding with pure Dart. Integrate package with few configuration.
Expandable Widgets
Custom/3rd Widgets mapping can be easily extended with annotation.
# Quick Start
Use Flutter Fair require few steps. Add dependency inside pubspec.yaml
.
dependencies:
fair: ^0.2.0
1
2
2
Wrap your app with FairApp Widget.
void main() {
runApp(
FairApp(
child: MaterialApp(home: App())
),
);
}
1
2
3
4
5
6
7
2
3
4
5
6
7
Import a dynamic widget as FairWidget
FairWidget(
type: 'hello_world',
path: 'assets/bundle/hello_world.json',
)
1
2
3
4
2
3
4