2022-07-07 11:40:54 -07:00
|
|
|
import 'package:easy_localization/easy_localization.dart';
|
2022-02-08 10:24:49 -07: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 05:23:48 -07:00
|
|
|
var monthTitleText = DateFormat("monthly_title_text_date_format".tr())
|
|
|
|
.format(DateTime.parse(isoDate));
|
2022-02-08 10:24:49 -07:00
|
|
|
|
|
|
|
return SliverToBoxAdapter(
|
|
|
|
child: Padding(
|
|
|
|
padding: const EdgeInsets.only(left: 12.0, top: 32),
|
|
|
|
child: Text(
|
|
|
|
monthTitleText,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: 26,
|
|
|
|
fontWeight: FontWeight.bold,
|
2022-08-15 16:53:30 -07:00
|
|
|
color: Theme.of(context).textTheme.headline1?.color,
|
2022-02-08 10:24:49 -07:00
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|