showAccountExpiredDialog static method
Implementation
static showAccountExpiredDialog(BuildContext context, {required Function onContinue}) {
showDialog(
context: context,
builder: (context) {
return AlertDialog(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(
Radius.circular(
16.r,
),
),
),
contentPadding: EdgeInsets.all(
20.w,
),
title: Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Image.asset(
AppAssets.lock,
width: 12.w,
height: 12.h,
fit: BoxFit.fitHeight,
),
SizedBox(width: 4.w),
TextView(text: "Powered by", textStyle: titleStyle.copyWith(fontSize: 12.sp, fontWeight: FontWeight.w600,),),
SizedBox(width: 12.w),
Container(
padding: EdgeInsets.symmetric(horizontal: 12.w, vertical: 8.h),
decoration: BoxDecoration(
color: Pallet.warning.shade700.withOpacity(0.2),
borderRadius: BorderRadius.all(Radius.circular(16.r)),
),
child: Row(
children: [
Image.asset(
AppAssets.icon,
width: 12.w,
height: 12.h,
fit: BoxFit.fitWidth,
),
SizedBox(width: 4.w),
TextView(text: "Startbutton", textStyle: title3Style.copyWith(fontSize: 12.sp, fontWeight: FontWeight.w400, letterSpacing: 0.8),),
],
),
)
],
),
SizedBox(height: 64.h,),
],
),
content: SizedBox(
//height: setHeight(132),
width: 332.w,
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Image.asset(
AppAssets.warningOrange,
width: 88.w,
height: 88.h,
fit: BoxFit.fitHeight,
),
SizedBox(height: 24.h),
TextView(
text: "Account expired",
textStyle: title3Style.copyWith(fontSize: 20.sp, fontWeight: FontWeight.w700),
),
SizedBox(height: 12.h),
TextView(
text: "This account has expired, please use an alternative payment method.",
textAlign: TextAlign.center,
textStyle: title3Style.copyWith(fontSize: 14.sp, fontWeight: FontWeight.w400),
),
SizedBox(height: 40.h),
CustomIconButtonWidget(
buttonText: "Change payment method",
fontSize: 14.sp,
iconPath: AppAssets.changeWhite,
height: 49.h,
width: 249.w,
buttonColor: Pallet.orangeDark,
onTap: () {
onContinue();
}
),
SizedBox(height: 48.h),
],
),
),
);
});
}