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

This commit is contained in:
WinUser01
2021-12-20 22:21:50 +08:00
parent 7724927492
commit 41f6cc8b29
+5 -4
View File
@@ -60,9 +60,10 @@ class _DwspPageState extends State<DwspGetList> {
// } // }
listDwspGetList2.sort((_left, _right) => _left['id'].compareTo(_right['id'])); // list排序 listDwspGetList2.sort((_left, _right) => _left['id'].compareTo(_right['id'])); // list排序
for (var item in listDwspGetList2) { //listDwspGetList2.insert(1, listDwspGetList2[4]);
print('item = $item'); // for (var item in listDwspGetList2) {
} // print('item = $item');
// }
// flutter dart list 排序 // flutter dart list 排序
// list.sort((_left,_right)=>_left.age.compare(_right.age)); // list.sort((_left,_right)=>_left.age.compare(_right.age));
@@ -361,7 +362,7 @@ class _DwspPageState extends State<DwspGetList> {
// items.where((DropdownMenuItem<T> item) { // items.where((DropdownMenuItem<T> item) {
// return item.value == value; // return item.value == value;
// }).length == 1' // }).length == 1'
String _selectedValue = '点位编号'; String _selectedValue = 'id';
bool _descending = false; //默认升序排列 bool _descending = false; //默认升序排列
Widget _getImage(String _image) { Widget _getImage(String _image) {