the code below will not update the value of skip in the UI, is there a way to fix this?
Map<String, dynamic> _filter = {
'filter': {},
'sort': {'created_at': -1},
'skip': 0,
'limit': 10,
};
JsonEditor(
expandedObjects: _filter.keys.toList(),
onChanged: (value) {
setState(() => _filter = value);
},
json: jsonEncode(_filter),
actions: [
IconButton(
onPressed: () {
setState(() {
_canFetch = true;
_filter['skip'] = 0;
});
},
icon: Icon(
Icons.search,
color: Colors.black,
),
),
IconButton(
onPressed: () {
setState(() {
_filter['skip'] += _filter['limit'];
});
},
icon: Icon(
Icons.add,
color: Colors.black,
),
),
],
)
the code below will not update the value of skip in the UI, is there a way to fix this?