generateAnimatedSection function
Implementation
Widget generateAnimatedSection({
String? title,
required List<Widget> items,
String? footer,
}) {
return Column(
children: [
if (items.isNotEmpty)
title != null ? ListHeader(title: title) : const ListSectionGap(),
AnimatedEntries(grouped: true, children: items),
if (items.isNotEmpty && footer != null) ListFooter(text: footer),
],
);
}