This repository has been archived on 2023-11-18. You can view files and clone it, but cannot push or open issues or pull requests.
ha_client/lib/entity_widgets/common/last_updated.dart

18 lines
512 B
Dart
Raw Normal View History

2018-11-17 22:40:33 +02:00
part of '../../main.dart';
2018-10-27 14:27:41 +03:00
class LastUpdatedWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
final entityModel = EntityModel.of(context);
return Padding(
padding: EdgeInsets.fromLTRB(
2018-11-12 20:28:10 +02:00
Sizes.leftWidgetPadding, 0.0, 0.0, 0.0),
2018-10-27 14:27:41 +03:00
child: Text(
'${entityModel.entityWrapper.entity.lastUpdated}',
2018-10-27 14:27:41 +03:00
textAlign: TextAlign.left,
style: TextStyle(
2018-11-12 20:28:10 +02:00
fontSize: Sizes.smallFontSize, color: Colors.black26),
2018-10-27 14:27:41 +03:00
),
);
}
}