23 lines
630 B
Dart
23 lines
630 B
Dart
part of '../main.dart';
|
|
|
|
class EntityName extends StatelessWidget {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
final entityModel = EntityModel.of(context);
|
|
return GestureDetector(
|
|
child: Padding(
|
|
padding: EdgeInsets.only(right: 10.0),
|
|
child: Text(
|
|
"${entityModel.entity.displayName}",
|
|
overflow: TextOverflow.ellipsis,
|
|
softWrap: false,
|
|
style: TextStyle(fontSize: Entity.nameFontSize),
|
|
),
|
|
),
|
|
onTap: () =>
|
|
entityModel.handleTap
|
|
? eventBus.fire(new ShowEntityPageEvent(entityModel.entity))
|
|
: null,
|
|
);
|
|
}
|
|
} |