hyzp_ybqx-Commit043:在点位视频列表页面,实现按照点位id排序

master
WinUser01 4 years ago
parent 7724927492
commit 41f6cc8b29

@ -60,9 +60,10 @@ class _DwspPageState extends State<DwspGetList> {
// }
listDwspGetList2.sort((_left, _right) => _left['id'].compareTo(_right['id'])); // list
for (var item in listDwspGetList2) {
print('item = $item');
}
//listDwspGetList2.insert(1, listDwspGetList2[4]);
// for (var item in listDwspGetList2) {
// print('item = $item');
// }
// flutter dart list
// list.sort((_left,_right)=>_left.age.compare(_right.age));
@ -361,7 +362,7 @@ class _DwspPageState extends State<DwspGetList> {
// items.where((DropdownMenuItem<T> item) {
// return item.value == value;
// }).length == 1'
String _selectedValue = '点位编号';
String _selectedValue = 'id';
bool _descending = false; //
Widget _getImage(String _image) {

Loading…
Cancel
Save