diff --git a/lib/pages/mine/vip_page.dart b/lib/pages/mine/vip_page.dart index b44894d..53edbf5 100644 --- a/lib/pages/mine/vip_page.dart +++ b/lib/pages/mine/vip_page.dart @@ -184,9 +184,10 @@ class _VipPageState extends State { ), child: SingleChildScrollView( child: Container( - padding: EdgeInsetsGeometry.symmetric( - vertical: 22.w, - horizontal: 13.w + padding: EdgeInsetsGeometry.only( + top: 22.w, + left: 13.w, + right: 13.w ), child: Column( children: [ @@ -327,8 +328,8 @@ class _VipPageState extends State { ], ), ), + Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [ Container( width: 86.w, @@ -404,45 +405,46 @@ class _VipPageState extends State { }); }), - Container( - width: 161.w, - height: 45.w, - decoration: BoxDecoration( - borderRadius: BorderRadius.all(Radius.circular(45.w)), - gradient: LinearGradient( - begin: Alignment.centerLeft, // 90deg: 从左到右 - end: Alignment.centerRight, - colors: [ - Color.fromRGBO(131, 89, 255, 1), // 起点颜色 - Color.fromRGBO(77, 127, 231, 1), // 中间颜色 - Color.fromRGBO(61, 138, 224, 1), // 终点颜色 - ], - stops: [0.0, 0.7753, 1.0], // 对应 0%、77.53%、100% - ), - ), - child: Center( - child: Text( - "立即开通", - style: TextStyle( - fontSize: 18.w, - color: Colors.white, - fontWeight: FontWeight.w500 - ), - ), - ), - ).onTap(() async { - if(payActive == 1){ - var e = await launchUrlString("alipays://platformapi/startapp?appId=20000067&url=https://www.baidu.com"); - } else { - fluwx.open(target: MiniProgram( - username: 'gh_9ea8d46add6f', - miniProgramType: WXMiniProgramType.preview, - path:"pages/index/index" - )); - } - }) ], - ) + ), + SizedBox(height: 10.w,), + Container( + width: 350.w, + height: 45.w, + decoration: BoxDecoration( + borderRadius: BorderRadius.all(Radius.circular(45.w)), + gradient: LinearGradient( + begin: Alignment.centerLeft, // 90deg: 从左到右 + end: Alignment.centerRight, + colors: [ + Color.fromRGBO(131, 89, 255, 1), // 起点颜色 + Color.fromRGBO(77, 127, 231, 1), // 中间颜色 + Color.fromRGBO(61, 138, 224, 1), // 终点颜色 + ], + stops: [0.0, 0.7753, 1.0], // 对应 0%、77.53%、100% + ), + ), + child: Center( + child: Text( + "立即开通", + style: TextStyle( + fontSize: 18.w, + color: Colors.white, + fontWeight: FontWeight.w500 + ), + ), + ), + ).onTap(() async { + if(payActive == 1){ + var e = await launchUrlString("alipays://platformapi/startapp?appId=20000067&url=https://www.baidu.com"); + } else { + fluwx.open(target: MiniProgram( + username: 'gh_9ea8d46add6f', + miniProgramType: WXMiniProgramType.preview, + path:"pages/index/index" + )); + } + }) ], ), ), @@ -529,7 +531,7 @@ class _VipItemState extends State { TextSpan( text: "88", style: TextStyle( - fontSize: 18.w + fontSize: 23.w ) ), ]