|
|
|
|
@ -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) {
|
|
|
|
|
|