sectionFooter method

  1. @override
Widget sectionFooter(
  1. BuildContext context, {
  2. Key? key,
  3. String? footer,
  4. Map<String, dynamic>? extraInfo,
})
override

Section Footer

Implementation

@override
Widget sectionFooter(BuildContext context, {Key? key, String? footer, Map<String, dynamic>? extraInfo}) {
  if (footer?.isEmpty ?? true) return SizedBox.shrink();

  return Container(
    height: footerHeight(context),
    color: footerBackgroundColor(context),
    child: Row(
      mainAxisAlignment: MainAxisAlignment.start,
      mainAxisSize: MainAxisSize.max,
      crossAxisAlignment: CrossAxisAlignment.center,
      children: [
        leadingCellPadding(context, extraInfo: extraInfo),
        Expanded(
          child: Align(
            alignment: AlignmentDirectional.topStart,
            child: Text(footer ?? '', style: footerTextStyle(context), overflow: TextOverflow.ellipsis),
          ),
        ),
        trailingCellPadding(context, extraInfo: extraInfo),
      ],
    ),
  );
}