generateAnimatedSection function

Widget generateAnimatedSection({
  1. String? title,
  2. required List<Widget> items,
  3. String? footer,
})

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),
    ],
  );
}