isPhoneMoreMenuItem method
Obx
isPhoneMoreMenuItem(
)
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
],
),
),
),
);
}
);
}