Flutter: 获取本地json数据
FutureBuilder(
future: DefaultAssetBundle.of(context).loadString('data/data.json'),
builder: (context, snap) {
....
},
),
FutureBuilder(
future: DefaultAssetBundle.of(context).loadString('data/data.json'),
builder: (context, snap) {
....
},
),