2023-03-06 14:55:56 +01:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:intl/intl.dart';
|
|
|
|
|
|
|
|
class EntryDetailTitle extends StatelessWidget {
|
|
|
|
final DateTime date;
|
|
|
|
final String entryData;
|
|
|
|
|
|
|
|
const EntryDetailTitle(
|
|
|
|
{super.key, required this.date, required this.entryData});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Row(
|
2023-03-06 15:46:40 +01:00
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
2023-03-06 14:55:56 +01:00
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
DateFormat.MMMd('de').format(date),
|
|
|
|
style:
|
|
|
|
const TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
|
|
|
|
),
|
2023-03-06 15:46:40 +01:00
|
|
|
Flexible(
|
|
|
|
child: Container(
|
|
|
|
padding: const EdgeInsets.symmetric(horizontal: 5.0),
|
|
|
|
child: Text(
|
|
|
|
entryData,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: const TextStyle(
|
|
|
|
color: Colors.white, fontWeight: FontWeight.bold),
|
|
|
|
)))
|
2023-03-06 14:55:56 +01:00
|
|
|
],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|