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/ui_widgets/card_header_widget.dart

25 lines
602 B
Dart
Raw Normal View History

part of '../main.dart';
class CardHeaderWidget extends StatelessWidget {
final String name;
const CardHeaderWidget({Key key, this.name}) : super(key: key);
@override
Widget build(BuildContext context) {
var result;
if ((name != null) && (name.trim().length > 0)) {
result = new ListTile(
title: Text("$name",
textAlign: TextAlign.left,
overflow: TextOverflow.ellipsis,
2019-01-23 23:34:45 +02:00
style: new TextStyle(fontSize: Sizes.mediumFontSize)),
);
} else {
result = new Container(width: 0.0, height: 0.0);
}
return result;
}
}