32 lines
707 B
Dart
32 lines
707 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class ContentListTile extends StatelessWidget {
|
|
const ContentListTile({
|
|
super.key,
|
|
this.name,
|
|
this.location,
|
|
this.title,
|
|
this.description,
|
|
});
|
|
|
|
final String? name;
|
|
final String? location;
|
|
final String? title;
|
|
final String? description;
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ListTile(
|
|
contentPadding: const EdgeInsets.all(0),
|
|
title: Row(
|
|
children: [
|
|
if (name != null) Text(name!),
|
|
if (location != null) Text(', $location'),
|
|
if (title != null) Text(' - $title'),
|
|
],
|
|
),
|
|
subtitle: description != null ? Text(description!) : null,
|
|
);
|
|
}
|
|
}
|