Sort most recent last heard on device details
This commit is contained in:
@@ -464,7 +464,9 @@ class _DeviceDetailViewState extends State<DeviceDetailView> {
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
..._lastHeardItems.map((item) => Card(
|
||||
...(_lastHeardItems.toList()
|
||||
..sort((a, b) => b.timestamp.compareTo(a.timestamp)))
|
||||
.map((item) => Card(
|
||||
margin: const EdgeInsets.only(bottom: 8),
|
||||
child: ListTile(
|
||||
leading: CircleAvatar(
|
||||
|
||||
Reference in New Issue
Block a user