2022-07-07 20:40:54 +02:00
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
2022-02-08 19:24:49 +02:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
|
|
|
|
class MonthlyTitleText extends StatelessWidget {
|
|
|
|
const MonthlyTitleText({
|
|
|
|
Key? key,
|
|
|
|
required this.isoDate,
|
|
|
|
}) : super(key: key);
|
|
|
|
|
|
|
|
final String isoDate;
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2022-07-13 14:23:48 +02:00
|
|
|
var monthTitleText = DateFormat("monthly_title_text_date_format".tr())
|
|
|
|
.format(DateTime.parse(isoDate));
|
2022-02-08 19:24:49 +02:00
|
|
|
|
|
|
|
return SliverToBoxAdapter(
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.only(left: 12.0, top: 32),
|
|
|
|
child: Text(
|
|
|
|
monthTitleText,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 26,
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: Theme.of(context).primaryColor,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|