supportItemContainer method
Implementation
Widget supportItemContainer({
required EdgeInsetsGeometry padding,
required BuildContext context,
required Faq faq,
}) {
return Obx(() {
return Container(
constraints:
context.isMobile ? null : const BoxConstraints(minHeight: 155),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: Colors.white,
boxShadow: const [
BoxShadow(
color: ColorHelper.shadowLight,
spreadRadius: 0,
blurRadius: 16,
offset: Offset(0, 4),
),
],
border: controller.selectedFaq.value == faq
? Border.all(
width: 0.5,
color: ColorHelper.primaryColor2,
)
: null,
),
margin: context.isMobile
? const EdgeInsets.fromLTRB(0, 0, 9, 9)
: const EdgeInsets.fromLTRB(0, 0, 21, 21),
child: InkWell(
onTap: () {
controller.selectedFaq.value = faq;
controller.showAllQuestions.value = false;
},
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 12),
child: Column(
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Image.asset(
'assets/contactus/leading-icon.png',
width: 20,
),
context.isMobile ? 8.SpaceY : 15.SpaceY,
Text(
faq.title ?? '',
style: TextStyle(
color: ColorHelper.neutralMediumText,
height: 1.5,
fontSize: context.isMobile ? 14 : 16,
fontWeight: context.isMobile
? FontWeight.w500
: FontWeight.w600,
),
),
const Spacer(),
Image.asset(
'assets/contactus/add-icon.png',
width: 30,
),
],
),
if (!context.isMobile) ...[
8.SpaceX,
Text(
faq.description ?? '',
style: TextStyle(
color: ColorHelper.neutralLightText,
height: 1.3,
fontSize: 12.dp,
fontWeight: FontWeight.w400,
),
),
],
],
),
),
),
);
});
}