sectionHeader method
- dynamic context,
- String sectionTitle
Implementation
Widget sectionHeader(BuildContext context, String sectionTitle) {
return Row(
children: [
Text(
sectionTitle,
style: Theme.of(context).textTheme.titleSmall,
),
const Spacer(),
ActerInlineTextButton(
onPressed: () => context.pushNamed(Routes.calendarEvents.name),
child: Text(L10n.of(context).seeAll),
),
],
);
}