diff --git a/circle_app/lib/app/invite/share.dart b/circle_app/lib/app/invite/share.dart index dca4a98..eab690c 100644 --- a/circle_app/lib/app/invite/share.dart +++ b/circle_app/lib/app/invite/share.dart @@ -37,269 +37,264 @@ class _ShareState extends State { return Scaffold( backgroundColor: Colors.transparent, body: Container( - child: Stack( - alignment: Alignment.center, + child: Column( children: [ - Positioned( - top: 84.sp, - child: Container( - width: Get.width - 40.sp, - height: Get.height - 84.sp - Get.bottomBarHeight - 164.sp - 10.sp, - child:SingleChildScrollView( - child: RepaintBoundary( - key: _globalKey, - child: Container( - decoration: BoxDecoration( - image: DecorationImage( - image: AssetImage(getCircleImage("open_vip_bg")), - fit: BoxFit.fill, - ), + Expanded(child: Container()), + Container( + width: Get.width - 40.sp, + // height: Get.height - Get.bottomBarHeight - 164.sp - 10.sp, + child:SingleChildScrollView( + child: RepaintBoundary( + key: _globalKey, + child: Container( + decoration: BoxDecoration( + image: DecorationImage( + image: AssetImage(getCircleImage("open_vip_bg")), + fit: BoxFit.fill, ), - child: Column( - children: [ - Container( - width: Get.width, - height: 65.sp, - margin: EdgeInsets.only(left: 15.sp, top: 20.sp), - child: Row( - children: [ - Center( - child: Stack( - alignment: Alignment.center, - children: [ - Container( - width: 47.sp, - height: 47.sp, - decoration: const BoxDecoration( - shape: BoxShape.circle, - gradient: LinearGradient( - colors: [ - Color(0xFFDD3DF4), - Color(0xFF30FFD9) - ], - begin: Alignment.topCenter, - end: Alignment.bottomCenter, - ), + ), + child: Column( + children: [ + Container( + width: Get.width, + height: 65.sp, + margin: EdgeInsets.only(left: 15.sp, top: 20.sp,right: 15.sp), + child: Row( + children: [ + Center( + child: Stack( + alignment: Alignment.center, + children: [ + Container( + width: 47.sp, + height: 47.sp, + decoration: const BoxDecoration( + shape: BoxShape.circle, + gradient: LinearGradient( + colors: [ + Color(0xFFDD3DF4), + Color(0xFF30FFD9) + ], + begin: Alignment.topCenter, + end: Alignment.bottomCenter, ), ), - SizedBox( - width: 46.sp, - height: 46.sp, - child: _buildAvatar1(logic), + ), + SizedBox( + width: 46.sp, + height: 46.sp, + child: _buildAvatar1(logic), + ) + ], + ), + ), + Expanded( + child: Container( + padding: EdgeInsets.only(left: 10.sp), + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + _buildNameRow(logic), + SizedBox(height: 10.sp), + _buildInfoRow(logic), + ], + ), + ), + ), + Image.asset( + getBaseImage("ic_launcher"), + width: 65.sp, + height: 65.sp, + ) + ], + ), + ), + // Expanded( + // child: + Container( + padding: EdgeInsets.only(left: 10.sp,right: 10.sp), + // color: Colors.red, + // height: 310.sp, + child: Column( + children: [ + SizedBox( + height: 5.sp, + ), + Container( + padding: EdgeInsets.only(left: 15.sp,right: 15.sp), + child: Image.asset( + getMineImage('share_title'), + ), + ), + SizedBox( + height: 10.sp, + ), + Image.asset( + getMineImage('share_content_bg'), + // height: 260.sp, + fit:BoxFit.fitWidth + ), + ], + ), + ), + Container( + // height: 90.sp, + // color: Color(0xFF334141), + alignment: Alignment.center, + // color: Colors.yellow, + // width: Get.width-40.sp, + margin: EdgeInsets.only(bottom: 15.sp,top: 10.sp), + padding: EdgeInsets.only(left: 15.sp, right: 15.sp), + child: Row( + + children: [ + Expanded( + child: Container( + // color: Colors.red, + child: Column( + crossAxisAlignment: + CrossAxisAlignment.start, + children: [ + Container( + // color: Colors.blue, + child: Row( + children: [ + Text( + '专属邀请码', + style: TextStyle( + color: Colors.white, + fontSize: 18.sp), + ), + SizedBox( + width: 8.sp, + ), + Container( + alignment: Alignment.center, + padding: EdgeInsets.only( + left: 10.sp, right: 10.sp), + height: 25.sp, + decoration: BoxDecoration( + // color: Color(0xFFDC5BFD), + gradient: + const LinearGradient( + colors: [ + Color(0xFF0DF5F7), + Color(0xFFD263FB) + ], + begin: + Alignment.centerLeft, + end: + Alignment.centerRight, + ), + borderRadius: + BorderRadius.circular( + 12.5.sp)), + child: Text( + widget.code, + style: TextStyle( + color: Colors.black, + fontSize: 12.sp), + ), + ) + ], + ), + ), + Container( + margin: EdgeInsets.only(top: 10.sp), + width: Get.width - 200.sp, + child: Text( + '扫码或长按识别下载APP,认识更多小众圈子里的人,给生活带来更多乐趣~', + style: TextStyle( + color: Colors.white, + fontSize: 15.sp)), ) ], ), ), - Expanded( - child: Container( - padding: EdgeInsets.only(left: 10.sp), - child: Column( - crossAxisAlignment: - CrossAxisAlignment.start, - children: [ - _buildNameRow(logic), - SizedBox(height: 10.sp), - _buildInfoRow(logic), - ], - ), + ), + // Image.asset(getBaseImage("ic_launcher"),width: 80.sp,height: 80.sp,) + Stack( + alignment: Alignment.center, + children: [ + Container( + color: Colors.white, + width: 90.sp, + height: 90.sp, ), - ), - Image.asset( - getBaseImage("ic_launcher"), - width: 80.sp, - height: 80.sp, - ) - ], - ), - ), - // Expanded( - // child: - Container( - padding: EdgeInsets.only(left: 10.sp,right: 10.sp), - // color: Colors.red, - // height: 310.sp, - child: Column( - children: [ - SizedBox( - height: 20.sp, - ), - Container( - padding: EdgeInsets.only(left: 15.sp,right: 15.sp), - child: Image.asset( - getMineImage('share_title'), - ), - ), - SizedBox( - height: 10.sp, - ), - Image.asset( - getMineImage('share_content_bg'), - // height: 260.sp, - fit:BoxFit.fitWidth - ), - ], - ), - ), - Container( - height: 90.sp, - // color: Color(0xFF334141), - alignment: Alignment.center, - // color: Colors.yellow, - // width: Get.width-40.sp, - margin: EdgeInsets.only(bottom: 15.sp,top: 10.sp), - padding: EdgeInsets.only(left: 15.sp, right: 15.sp), - child: Row( - - children: [ - Expanded( - child: Container( - // color: Colors.red, - child: Column( - crossAxisAlignment: - CrossAxisAlignment.start, - children: [ - Container( - // color: Colors.blue, - child: Row( - children: [ - Text( - '专属邀请码', - style: TextStyle( - color: Colors.white, - fontSize: 16.sp), - ), - SizedBox( - width: 8.sp, - ), - Container( - alignment: Alignment.center, - padding: EdgeInsets.only( - left: 10.sp, right: 10.sp), - height: 25.sp, - decoration: BoxDecoration( - // color: Color(0xFFDC5BFD), - gradient: - const LinearGradient( - colors: [ - Color(0xFF0DF5F7), - Color(0xFFD263FB) - ], - begin: - Alignment.centerLeft, - end: - Alignment.centerRight, - ), - borderRadius: - BorderRadius.circular( - 12.5.sp)), - child: Text( - widget.code, - style: TextStyle( - color: Colors.black, - fontSize: 12.sp), - ), - ) - ], - ), - ), - Container( - margin: EdgeInsets.only(top: 10.sp), - width: Get.width - 200.sp, - child: Text( - '扫码或长按识别下载APP,认识更多小众圈子里的人,给生活带来更多乐趣~', - style: TextStyle( - color: Colors.white, - fontSize: 12.sp)), - ) - ], - ), - ), - ), - // Image.asset(getBaseImage("ic_launcher"),width: 80.sp,height: 80.sp,) - Stack( - alignment: Alignment.center, - children: [ - Container( - color: Colors.white, - width: 90.sp, - height: 90.sp, - ), - QrImageView( - data: widget.link, - padding: EdgeInsets.zero, - version: QrVersions.auto, - size: 80.sp, - gapless: false, - // backgroundColor: Colors.black, - ) - ], - ) - ], - ), - ) - ], - ), - )) - ), - ), - ), - Positioned( - bottom: 0, - child: SafeArea( - top: false, - child: Container( - height: 164.sp, - width: Get.width, - color: Color(0xFF292247), - child: Column( - children: [ - Expanded( - child: Container( - padding: EdgeInsets.only( - top: 15.sp, left: 15.sp, right: 15.sp), - alignment: Alignment.center, - child: Row( - mainAxisAlignment: MainAxisAlignment.spaceBetween, - children: [ - shareAction('wx', '微信', () { - shareWxData(1); - }), - shareAction('wxq', '朋友圈', () { - shareWxData(2); - }), - shareAction('qq', 'QQ', () { - copyInviteText(logic.name); - }), - shareAction('wb', '微博', () { - copyInviteText(logic.name); - }), - shareAction('hb', '保存海报', () { - _saveLocalImage(); - }), + QrImageView( + data: widget.link, + padding: EdgeInsets.zero, + version: QrVersions.auto, + size: 80.sp, + gapless: false, + // backgroundColor: Colors.black, + ) + ], + ) ], ), - )), - Container( - height: 1.sp, - color: Color(0x33FFFFFF), - ), - GestureDetector( - onTap: () { - Get.back(); - }, - child: Container( - height: 67.sp, - alignment: Alignment.center, - child: Text( - '取消', - style: TextStyle( - color: Colors.white, fontSize: 14.sp), - ), - ), ) ], ), - ))) + )) + ), + ), + SafeArea( + top: false, + child: Container( + height: 164.sp, + width: Get.width, + color: Color(0xFF292247), + child: Column( + children: [ + Expanded( + child: Container( + padding: EdgeInsets.only( + top: 15.sp, left: 15.sp, right: 15.sp), + alignment: Alignment.center, + child: Row( + mainAxisAlignment: MainAxisAlignment.spaceBetween, + children: [ + shareAction('wx', '微信', () { + shareWxData(1); + }), + shareAction('wxq', '朋友圈', () { + shareWxData(2); + }), + shareAction('qq', 'QQ', () { + copyInviteText(logic.name); + }), + shareAction('wb', '微博', () { + copyInviteText(logic.name); + }), + shareAction('hb', '保存海报', () { + _saveLocalImage(); + }), + ], + ), + )), + Container( + height: 1.sp, + color: Color(0x33FFFFFF), + ), + GestureDetector( + onTap: () { + Get.back(); + }, + child: Container( + height: 67.sp, + alignment: Alignment.center, + child: Text( + '取消', + style: TextStyle( + color: Colors.white, fontSize: 14.sp), + ), + ), + ) + ], + ), + )) ], ), ), diff --git a/circle_app/lib/app/minefragment/view.dart b/circle_app/lib/app/minefragment/view.dart index 4b1ec7c..93fafb8 100644 --- a/circle_app/lib/app/minefragment/view.dart +++ b/circle_app/lib/app/minefragment/view.dart @@ -52,28 +52,30 @@ class MinefragmentPage extends StatelessWidget { left: 11.sp, right: 11.sp, ), - child: Column( - children: [ - _buildAvatarRow(logic), - _friendsRow(logic), - GestureDetector( - onTap: () { - showRechargeDialog(logic); - }, - child: Stack(children: [ - MyImageWidget, - Positioned( - top: 58.sp, - left: 90.sp, - child: Text(logic.vipMsg,style: TextStyle(color: const Color(0x99FFFFFF),fontSize: 12.sp),)), - Positioned( - top: 32.sp, - left: 90.sp, - child: Text("会员-微乐园贵宾",style: TextStyle(color: const Color(0xFFFFFFFF),fontSize: 16.sp),)) - ],), - ), - _circleLiveView(logic), - ], + child: SingleChildScrollView( + child: Column( + children: [ + _buildAvatarRow(logic), + _friendsRow(logic), + GestureDetector( + onTap: () { + showRechargeDialog(logic); + }, + child: Stack(children: [ + MyImageWidget, + Positioned( + top: 58.sp, + left: 90.sp, + child: Text(logic.vipMsg,style: TextStyle(color: const Color(0x99FFFFFF),fontSize: 12.sp),)), + Positioned( + top: 32.sp, + left: 90.sp, + child: Text("会员-微乐园贵宾",style: TextStyle(color: const Color(0xFFFFFFFF),fontSize: 16.sp),)) + ],), + ), + _circleLiveView(logic), + ], + ), ), ), ),