shippingOnClick method
Implementation
void shippingOnClick(BuildContext context) {
showModalBottomSheet(
context: context,
elevation: 4,
backgroundColor: AppColors.white,
shape: const RoundedRectangleBorder(
borderRadius: BorderRadius.vertical(
top: Radius.circular(20),
),
),
clipBehavior: Clip.antiAliasWithSaveLayer,
enableDrag: true,
builder: (context) {
return Container(
padding: const EdgeInsets.only(
left: 30, right: 30, top: 15, bottom: 15),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisSize: MainAxisSize.min,
children: [
Row(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Container(),
const CustomText(
text: Strings.shipping,
font: Dimens.fontSize16,
fntweight: FontWeight.w700,
),
CustomInkwellWidget(
onTap: () {
Navigator.pop(context);
// controller.autovalidate(false);
},
child: const Icon(
Icons.close,
color: AppColors.borderColor,
))
],
),
verticalSpaceMedium,
CustomText(
text: controller.merchantData.value.shippingPolicy ?? '',
font: Dimens.fontSize16,
txtAlign: TextAlign.start,
fntweight: FontWeight.w300,
),
verticalSpaceMedium,
]));
});
}