Version 0.10.0
This commit is contained in:
parent
d6e1594a6f
commit
67eedc4a77
16 changed files with 313 additions and 126 deletions
|
|
@ -87,6 +87,7 @@ class DevicesSettingsState extends State<DevicesSettings> {
|
|||
UserDevice thisDevice =
|
||||
devices.firstWhere(isOwnDevice, orElse: () => null);
|
||||
devices.removeWhere(isOwnDevice);
|
||||
devices.sort((a, b) => b.lastSeenTs.compareTo(a.lastSeenTs));
|
||||
return Column(
|
||||
children: <Widget>[
|
||||
if (thisDevice != null)
|
||||
|
|
@ -159,9 +160,15 @@ class UserDeviceListItem extends StatelessWidget {
|
|||
contentPadding: EdgeInsets.all(16.0),
|
||||
title: Row(
|
||||
children: <Widget>[
|
||||
Text((userDevice.displayName?.isNotEmpty ?? false)
|
||||
? userDevice.displayName
|
||||
: I18n.of(context).unknownDevice),
|
||||
Expanded(
|
||||
child: Text(
|
||||
(userDevice.displayName?.isNotEmpty ?? false)
|
||||
? userDevice.displayName
|
||||
: I18n.of(context).unknownDevice,
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
),
|
||||
),
|
||||
Spacer(),
|
||||
Text(userDevice.lastSeenTs.localizedTimeShort(context)),
|
||||
],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue