Commit f8d666e3ea3cd646f5bbf8e8caa801284b8f4f9d

Authored by wdn127929
1 parent f8b01d8e

极速版7天提醒

... ... @@ -758,7 +758,7 @@ class MyPageSimState extends State<MyPageSim> with WidgetsBindingObserver {
);
} else {
DialogUtil
.cupertinoAlertSellerEdateDialog(
.cupertinoAlertSellerEdateDialogSim(
context,
title: '温馨提示',
isBold: true,
... ... @@ -853,7 +853,7 @@ class MyPageSimState extends State<MyPageSim> with WidgetsBindingObserver {
);
} else {
DialogUtil
.cupertinoAlertSellerEdateDialog(
.cupertinoAlertSellerEdateDialogSim(
context,
title: '温馨提示',
isBold: true,
... ...
... ... @@ -8399,6 +8399,154 @@ class DialogUtil {
);
return action;
}
///店铺临近过期弹窗
static cupertinoAlertSellerEdateDialogSim(BuildContext context,
{String title = "",
String content = "内容",
String lTitle = "关闭",
String rTitle = "立即续费",
Color rColor = MyColours.color_438E93,
bool isBold = false,
bool isBoldContent = false,
Color contentColor = MyColours.color_99000000,
VoidCallback lCallback,
VoidCallback rCallback}) async {
// bool isRed = content != '' ? false : true;
final action = await showDialog(
context: context,
barrierDismissible: false,
builder: (BuildContext context) {
return StatefulBuilder(builder: (context, state) {
return Scaffold(
backgroundColor: Colors.transparent,
body: Center(
child: Container(
padding: EdgeInsets.symmetric(
horizontal: ScreenUtil().setWidth(50)),
// height: ScreenUtil().setWidth(421 * 2),
decoration: BoxDecoration(
borderRadius:
BorderRadius.circular(ScreenUtil().setWidth(16))),
child: SingleChildScrollView(
child: Card(
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.all(
Radius.circular(ScreenUtil().setWidth(10)))), //设置圆角
child: Container(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
VEmptyView(64),
Container(
alignment: Alignment.center,
child: Text(title,
style: TextStyle(
fontWeight: FontWeight.bold,
fontSize: ScreenUtil().setSp(32),
color: MyColours.color_E5000000)),
),
VEmptyView(16),
Text(
'您的店铺即将在',
style: TextStyle(
fontSize: ScreenUtil().setSp(32),
color: MyColours.color_515151),
),
VEmptyView(24),
Text(
'$content 过期',
style: TextStyle(
fontSize: ScreenUtil().setSp(32),
color: MyColours.color_E34D59),
),
VEmptyView(24),
Text(
'请及时续费或联系您的服务商',
style: TextStyle(
fontSize: ScreenUtil().setSp(32),
color: MyColours.color_515151),
),
// VEmptyView(24),
// Text(
// '400-000-9690 及时续费',
// style: TextStyle(
// fontSize: ScreenUtil().setSp(32),
// color: MyColours.color_515151),
// ),
VEmptyView(24),
Text(
'以免影响您的正常使用',
style: TextStyle(
fontSize: ScreenUtil().setSp(32),
color: MyColours.color_515151),
),
VEmptyView(66),
MyDivider(double.infinity, ScreenUtil().setWidth(2),
color: MyColours.color_f3f3f3),
// RoundButton(
// text: lTitle,
// width: (ScreenUtil().screenWidth -
// ScreenUtil().setWidth(62) * 2),
// height: ScreenUtil().setWidth(112),
// // radius: ScreenUtil().setWidth(10),
// gradientStart: Colors.transparent,
// gradientEnd: Colors.transparent,
// textColor: MyColours.color_E6000000,
// isBold: false,
// fontSize: 32,
// onPressed: () {
// Navigator.pop(context);
// }),
Row(
// mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
RoundButton(
text: lTitle,
width: (ScreenUtil().screenWidth -
ScreenUtil().setWidth(62) * 2) /
2,
height: ScreenUtil().setWidth(112),
// radius: ScreenUtil().setWidth(10),
gradientStart: Colors.transparent,
gradientEnd: Colors.transparent,
textColor: MyColours.color_E6000000,
isBold: false,
fontSize: 32,
onPressed: () {
Navigator.pop(context);
}),
MyDivider(ScreenUtil().setWidth(2),
ScreenUtil().setWidth(112),
color: MyColours.color_f3f3f3),
RoundButton(
text: rTitle,
width: (ScreenUtil().screenWidth -
ScreenUtil().setWidth(62) * 2) /
2,
height: ScreenUtil().setWidth(112),
// radius: ScreenUtil().setWidth(10),
gradientStart: Colors.transparent,
gradientEnd: Colors.transparent,
textColor: MyColours.color_438E93,
fontSize: 32,
onPressed: () {
rCallback();
Navigator.pop(
context,
);
}),
],
)
],
),
),
)),
),
));
});
},
);
}
///店铺临近过期弹窗
static cupertinoAlertSellerEdateDialog(BuildContext context,
... ...