buildMenuDrawer method

Widget buildMenuDrawer(
  1. String title,
  2. Function onTap
)

Implementation

Widget buildMenuDrawer(String title, Function onTap){
 return Material(
    color: Colors.transparent,
    child : InkWell(
      highlightColor: Colors.black.withOpacity(0.5),
      hoverColor: Colors.black.withOpacity(0.5),
      onTap: onTap as void Function()?,
      child: Container(
        padding: EdgeInsets.symmetric(vertical: 15),
        width: double.infinity,
        child: Text(title, style: MyText.subhead(context)!.copyWith(color: Colors.white, fontWeight: FontWeight.w500)),
      ),
    ),
  );
}