getContainerClickable method

Widget getContainerClickable(
  1. Widget widget,
  2. Menu obj,
  3. Function func
)

Implementation

Widget getContainerClickable(Widget widget, Menu obj, Function func) {
  bool sub = obj.subs.isEmpty;
  return Container(
    height: sub ? 38 : 45,
    child: InkWell(
      highlightColor: Colors.grey,
      splashColor: Colors.grey,
      onTap: () => func(obj),
      child: Padding(
          padding: EdgeInsets.symmetric(horizontal: 10), child: widget),
    ),
  );
}