|
|
@@ -10,9 +10,7 @@ class MemberRetainDialog {
|
|
|
static final String _tag = 'MemberRetainDialog';
|
|
|
|
|
|
static void show(
|
|
|
- {required VoidCallback payClick,
|
|
|
- bool isShowRecommendView = true,
|
|
|
- required VoidCallback cancelClick}) {
|
|
|
+ {required VoidCallback payClick, required VoidCallback cancelClick}) {
|
|
|
SmartDialog.show(
|
|
|
tag: _tag,
|
|
|
backDismiss: false,
|
|
|
@@ -21,7 +19,6 @@ class MemberRetainDialog {
|
|
|
builder: (_) {
|
|
|
return _MemberRetainDialogWidget(
|
|
|
payClick: payClick,
|
|
|
- isShowRecommendView: isShowRecommendView,
|
|
|
cancelClick: cancelClick);
|
|
|
});
|
|
|
}
|
|
|
@@ -34,12 +31,9 @@ class MemberRetainDialog {
|
|
|
class _MemberRetainDialogWidget extends Dialog {
|
|
|
final VoidCallback payClick;
|
|
|
final VoidCallback cancelClick;
|
|
|
- final bool isShowRecommendView;
|
|
|
|
|
|
const _MemberRetainDialogWidget(
|
|
|
- {required this.payClick,
|
|
|
- required this.isShowRecommendView,
|
|
|
- required this.cancelClick});
|
|
|
+ {required this.payClick, required this.cancelClick});
|
|
|
|
|
|
@override
|
|
|
Widget build(BuildContext context) {
|
|
|
@@ -48,17 +42,14 @@ class _MemberRetainDialogWidget extends Dialog {
|
|
|
children: [
|
|
|
Stack(
|
|
|
children: [
|
|
|
- Visibility(
|
|
|
- visible: isShowRecommendView,
|
|
|
- child: Positioned(
|
|
|
- top: 0,
|
|
|
- left: 10.w,
|
|
|
- child: SizedBox(
|
|
|
- width: 300.w,
|
|
|
- child: AspectRatio(
|
|
|
- aspectRatio: 987 / 543,
|
|
|
- child: Assets.images.imgMemberRetainHeader.image()),
|
|
|
- ),
|
|
|
+ Positioned(
|
|
|
+ top: 0,
|
|
|
+ left: 10.w,
|
|
|
+ child: SizedBox(
|
|
|
+ width: 300.w,
|
|
|
+ child: AspectRatio(
|
|
|
+ aspectRatio: 987 / 543,
|
|
|
+ child: Assets.images.imgMemberRetainHeader.image()),
|
|
|
),
|
|
|
),
|
|
|
Column(
|
|
|
@@ -99,7 +90,7 @@ class _MemberRetainDialogWidget extends Dialog {
|
|
|
//getPrimaryBtnDecoration(100.w),
|
|
|
child: Center(
|
|
|
child: Text(
|
|
|
- isShowRecommendView
|
|
|
+ Platform.isAndroid
|
|
|
? StringName.memberContinuePay
|
|
|
: StringName.memberContinuePayIos,
|
|
|
style:
|