30 lines
740 B
Dart
30 lines
740 B
Dart
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(
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
children: [
|
|
Text(
|
|
DateFormat.MMMd('de').format(date),
|
|
style:
|
|
const TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
|
|
),
|
|
Text(
|
|
entryData,
|
|
style:
|
|
const TextStyle(color: Colors.white, fontWeight: FontWeight.bold),
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|