hyzp_ybqx-Commit043:在点位视频列表页面,实现按照点位id排序
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user