makeListTile_SideDrawer function

Widget makeListTile_SideDrawer(
  1. {required IconData icon,
  2. required String title,
  3. required void onTap(
      ),
    1. Color? iconColor,
    2. Color? textColor}
    )

    Implementation

    Widget makeListTile_SideDrawer(
        {required IconData icon,
        required String title,
        required void Function() onTap,
        Color? iconColor,
        Color? textColor}) {
      return ListTile(
          onTap: onTap.call,
          title: Row(
            children: [
              Icon(
                icon,
                size: 28,
                color: iconColor ?? Colors.black,
              ),
              const SizedBox(width: 30),
              Text(title,
                  style: TextStyle(
                      fontSize: 16,
                      fontWeight: FontWeight.w600,
                      color: textColor ?? Colors.black)),
            ],
          ));
    }