isPhoneMoreMenuItem method

Obx isPhoneMoreMenuItem(
  1. BuildContext context,
  2. String item,
  3. String route
)

Implementation

Obx isPhoneMoreMenuItem(BuildContext context, String item, String route) {
  return Obx(
      (){
        if (isPhoneMoreOpen.isFalse) {
          return const SizedBox.shrink();
        }

        return PointerInterceptor(
          child: InkWell(
            onTap:(){
              if (Navigator.canPop(context)) {
                Navigator.pop(context);
              }
              if(route == 'Contact') {
                goto(
                  Routes.FAQ,
                  parameters: {
                    'flag':'true',
                  },
                );
              }else if(route == 'faq') {
                goto(
                  Routes.FAQ,
                  parameters: {
                    'flag':'false',
                  },
                );
              } else {
                goto(route);
              }
            },
            child: Padding(
              padding: EdgeInsets.symmetric(vertical: 6.dp),
              child: Row(
                children: [
                  12.SpaceY,
                  Text(
                    item,
                    style: const TextStyle(
                      fontWeight: FontWeight.w400,
                      fontSize: 16,
                      color: ColorHelper.neutralLightText,
                    ),
                  ),
                  140.SpaceY
                ],
              ),
            ),
          ),
        );
      }
  );
}