指南
资料
pubspec.yaml
内添加依赖
1 2 启用容器FairApp
dependencies:
fair: ^0.2.0
1 2 3 4 5 6 7 引用组件FairWidget
void main() {
runApp(
FairApp(
child: MaterialApp(home: App())
),
);
}
1 2 3 4 Copyright © 2020 58.com | Powered by The Fair Authors
FairWidget(
type: 'hello_world',
path: 'assets/bundle/hello_world.json',
)