drawerFooter method

dynamic drawerFooter(
  1. BuildContext context, {
  2. bool separator = false,
  3. FontWeight textWeight = FontWeight.w500,
  4. Color color = Colors.black,
  5. double padding = 12.0,
  6. TemplateRF? template,
})

Implementation

drawerFooter(
  BuildContext context, {
  bool separator = false,
  FontWeight textWeight = FontWeight.w500,
  Color color = Colors.black,
  double padding = 12.0,
  TemplateRF? template,
}) {
  template = TemplateRF.get();
  if (template!.name == TemplateNameRF.modern && template.version == 'Oval') {
    separator = true;
    textWeight = FontWeight.w500;
    color = Colors.black;
    padding = 12.0;
  } else if (template.name == TemplateNameRF.modern) {
    separator = false;
    textWeight = FontWeight.w500;
    color = Colors.white;
    padding = 10.0;
  } else if (template.name == TemplateNameRF.material) {
    separator = false;
    textWeight = FontWeight.w500;
    color = Colors.pink;
    padding = 12.0;
  }
  return DrawerItemRF(
    icon: FontAwesomeIcons.headphonesAlt,
    text: 'SUPPORT',
    separator: separator,
    textWeight: textWeight,
    color: color,
    template: _template,
    padding: padding,
    onTap: () => rf.page.call(context, AuthPage()),
  );
}