-
Notifications
You must be signed in to change notification settings - Fork 319
Open
Description
获取的是空的map, js 端用 plugin 传过来是有 map。
但是
Fair/fair/lib/src/internal/bind_data.dart
Line 90 in 4b19267
var result = _functions?['runtimeParseVar']?.call({name: ''}); |
@FairPatch()
class SugarDemo extends StatefulWidget {
const SugarDemo({
super.key,
required this.fairProps,
});
final Map<String, dynamic> fairProps;
@override
State<SugarDemo> createState() => _SugarDemoState();
}
class _SugarDemoState extends State<SugarDemo> {
@FairProps()
var fairProps;
final String _pageName = '#FairKey#';
var _list = [];
@override
void initState() {
super.initState();
fairProps = widget.fairProps;
onLoad();
}
void onLoad() {
_list.add({'ddd': 1});
setState(() {});
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('test'),
),
body: Column(
children: Sugar.map<Widget, dynamic>(_list, builder: (item) {
return Text('$item');
}),
),
);
}
}
Metadata
Metadata
Assignees
Labels
No labels