|
|
|
@ -1,7 +1,9 @@
|
|
|
|
|
import 'dart:convert'; |
|
|
|
|
|
|
|
|
|
import 'package:dio/dio.dart'; |
|
|
|
|
import 'package:flutter/cupertino.dart'; |
|
|
|
|
import 'package:flutter/material.dart'; |
|
|
|
|
import 'package:flutter/widgets.dart'; |
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
|
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; |
|
|
|
|
import 'package:huixiang/data/base_data.dart'; |
|
|
|
@ -10,6 +12,7 @@ import 'package:huixiang/data/page.dart';
|
|
|
|
|
import 'package:huixiang/data/user_info.dart'; |
|
|
|
|
import 'package:huixiang/generated/l10n.dart'; |
|
|
|
|
import 'package:huixiang/retrofit/retrofit_api.dart'; |
|
|
|
|
import 'package:huixiang/utils/constant.dart'; |
|
|
|
|
import 'package:huixiang/utils/flutter_utils.dart'; |
|
|
|
|
import 'package:huixiang/utils/font_weight.dart'; |
|
|
|
|
import 'package:huixiang/view_widget/classic_header.dart'; |
|
|
|
@ -116,44 +119,30 @@ class _InviteFriends extends State<InviteFriends> {
|
|
|
|
|
return Scaffold( |
|
|
|
|
backgroundColor: Colors.white, |
|
|
|
|
appBar: AppBar( |
|
|
|
|
shadowColor: Colors.white, |
|
|
|
|
backgroundColor: Colors.white, |
|
|
|
|
leading: GestureDetector( |
|
|
|
|
child: Icon( |
|
|
|
|
Icons.clear, |
|
|
|
|
color: Colors.black, |
|
|
|
|
), |
|
|
|
|
onTap: () { |
|
|
|
|
Navigator.of(context).pop(); |
|
|
|
|
}), |
|
|
|
|
title: Text( |
|
|
|
|
S.of(context).yaoqinghaoyou, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
fontSize: 17.sp, |
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
), |
|
|
|
|
shadowColor: Colors.white, |
|
|
|
|
backgroundColor: Colors.white, |
|
|
|
|
leading: GestureDetector( |
|
|
|
|
child: Icon( |
|
|
|
|
Icons.arrow_back_ios_new_rounded, |
|
|
|
|
color: Colors.black, |
|
|
|
|
), |
|
|
|
|
centerTitle: true, |
|
|
|
|
elevation: 0.0, |
|
|
|
|
//滑动时颜色不变 |
|
|
|
|
scrolledUnderElevation: 0.0 |
|
|
|
|
// actions: [ |
|
|
|
|
// GestureDetector( |
|
|
|
|
// child: Container( |
|
|
|
|
// margin: EdgeInsets.only(right: 14), |
|
|
|
|
// padding:EdgeInsets.only(left:70,right: 20), |
|
|
|
|
// child: Icon( |
|
|
|
|
// Icons.more_horiz, |
|
|
|
|
// color: Colors.black, |
|
|
|
|
// ), |
|
|
|
|
// ), |
|
|
|
|
// onTap: () { |
|
|
|
|
// // Navigator.of(context).pop(); |
|
|
|
|
// // share(); |
|
|
|
|
// }) |
|
|
|
|
// ], |
|
|
|
|
onTap: () { |
|
|
|
|
Navigator.of(context).pop(); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
title: Text( |
|
|
|
|
S.of(context).yaoqinghaoyou, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
fontSize: 17.sp, |
|
|
|
|
color: Color(0xFF000000), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
centerTitle: true, |
|
|
|
|
elevation: 0.0, |
|
|
|
|
//滑动时颜色不变 |
|
|
|
|
scrolledUnderElevation: 0.0, |
|
|
|
|
), |
|
|
|
|
body: SmartRefresher( |
|
|
|
|
controller: refreshController, |
|
|
|
|
enablePullDown: true, |
|
|
|
@ -192,19 +181,20 @@ class _InviteFriends extends State<InviteFriends> {
|
|
|
|
|
Widget invite() { |
|
|
|
|
return Container( |
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 370.h, |
|
|
|
|
margin: EdgeInsets.only(bottom: 20.h), |
|
|
|
|
margin: EdgeInsets.only( |
|
|
|
|
bottom: 16.h, |
|
|
|
|
), |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/invite_friends.webp", |
|
|
|
|
height: 300.h, |
|
|
|
|
width: double.infinity, |
|
|
|
|
fit: BoxFit.fill, |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 12.h, |
|
|
|
|
Container( |
|
|
|
|
child: Image.asset( |
|
|
|
|
"assets/image/invite_friends.webp", |
|
|
|
|
width: double.infinity, |
|
|
|
|
fit: BoxFit.fitWidth, |
|
|
|
|
alignment: Alignment.topCenter, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
26.d, |
|
|
|
|
GestureDetector( |
|
|
|
|
onTap: () { |
|
|
|
|
widgetToUrl(); |
|
|
|
@ -213,7 +203,7 @@ class _InviteFriends extends State<InviteFriends> {
|
|
|
|
|
width: double.infinity, |
|
|
|
|
height: 52.h, |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
borderRadius: BorderRadius.circular(26), |
|
|
|
|
borderRadius: BorderRadius.circular(26.h), |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
), |
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 14.w), |
|
|
|
@ -237,11 +227,11 @@ class _InviteFriends extends State<InviteFriends> {
|
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
color: Color(0xFFFFFFFF), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
@ -255,372 +245,216 @@ class _InviteFriends extends State<InviteFriends> {
|
|
|
|
|
borderRadius: BorderRadius.circular(6), |
|
|
|
|
color: Color(0xFFFFFFFF), |
|
|
|
|
), |
|
|
|
|
margin: EdgeInsets.only(bottom: 12.h, left: 14.h, right: 14.h), |
|
|
|
|
margin: EdgeInsets.only( |
|
|
|
|
bottom: 12.h, |
|
|
|
|
left: 14.h, |
|
|
|
|
right: 14.h, |
|
|
|
|
), |
|
|
|
|
padding: EdgeInsets.all(6), |
|
|
|
|
child: Column( |
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
image: DecorationImage( |
|
|
|
|
decoration: BoxDecoration( |
|
|
|
|
image: DecorationImage( |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
image: AssetImage("assets/image/invite_bj.webp"), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
height: 54.h, |
|
|
|
|
width: double.infinity, |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).huodongguize, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 12.h, |
|
|
|
|
), |
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Spacer(), |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/invite_wx.webp", |
|
|
|
|
width: 42.h, |
|
|
|
|
height: 42.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: dashedLine(), |
|
|
|
|
), |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/yq_zt.webp", |
|
|
|
|
width: 42.h, |
|
|
|
|
height: 42.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: dashedLine(), |
|
|
|
|
), |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/zt_m.webp", |
|
|
|
|
width: 42.h, |
|
|
|
|
height: 42.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
|
child: dashedLine(), |
|
|
|
|
), |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/invite_q.webp", |
|
|
|
|
width: 42.h, |
|
|
|
|
height: 42.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
Spacer(), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Row( |
|
|
|
|
children: [ |
|
|
|
|
Spacer(), |
|
|
|
|
Container( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
width: 42.h, |
|
|
|
|
child: Image.asset( |
|
|
|
|
"assets/image/invite_1.webp", |
|
|
|
|
width: 24.h, |
|
|
|
|
height: 24.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Spacer(), |
|
|
|
|
Container( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
width: 42.h, |
|
|
|
|
child: Image.asset( |
|
|
|
|
"assets/image/invite_2.webp", |
|
|
|
|
width: 24.h, |
|
|
|
|
height: 24.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Spacer(), |
|
|
|
|
Container( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
width: 42.h, |
|
|
|
|
child: Image.asset( |
|
|
|
|
"assets/image/invite_3.webp", |
|
|
|
|
width: 24.h, |
|
|
|
|
height: 24.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Spacer(), |
|
|
|
|
Container( |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
width: 42.h, |
|
|
|
|
child: Image.asset( |
|
|
|
|
"assets/image/invite_4.webp", |
|
|
|
|
width: 24.h, |
|
|
|
|
height: 24.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
image: AssetImage("assets/image/invite_bj.webp"), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
height: 54.h, |
|
|
|
|
width: double.infinity, |
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
child: Text( |
|
|
|
|
S.of(context).huodongguize, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontWeight: MyFontWeight.semi_bold, |
|
|
|
|
fontSize: 16.sp, |
|
|
|
|
color: Color(0xFF32A060), |
|
|
|
|
), |
|
|
|
|
)), |
|
|
|
|
SizedBox( |
|
|
|
|
height: 17.h, |
|
|
|
|
Spacer(), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
IntrinsicHeight( |
|
|
|
|
child: Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Expanded( |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/invite_wx.webp", |
|
|
|
|
width: 42.h, |
|
|
|
|
height: 42.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width: 50.w, |
|
|
|
|
child: Flex( |
|
|
|
|
children: List.generate(8, (_) { |
|
|
|
|
return SizedBox( |
|
|
|
|
width: 3, |
|
|
|
|
height: 1, |
|
|
|
|
child: DecoratedBox( |
|
|
|
|
decoration: |
|
|
|
|
BoxDecoration(color: Color(0xFF32A060)), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}), |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/invite_1.webp", |
|
|
|
|
width: 24.h, |
|
|
|
|
height: 24.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width: 44.w, |
|
|
|
|
child: Flex( |
|
|
|
|
children: List.generate(0, (_) { |
|
|
|
|
return SizedBox( |
|
|
|
|
width: 3.w, |
|
|
|
|
height: 1.h, |
|
|
|
|
child: DecoratedBox( |
|
|
|
|
decoration: |
|
|
|
|
BoxDecoration(color: Colors.white), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}), |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
SizedBox(height: 8.h), |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
width: 50.w, |
|
|
|
|
child: Text( |
|
|
|
|
"分享链接给好友", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
height: 1.3.h, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width: 43.w, |
|
|
|
|
child: Flex( |
|
|
|
|
children: List.generate(0, (_) { |
|
|
|
|
return SizedBox( |
|
|
|
|
width: 3.w, |
|
|
|
|
height: 1.h, |
|
|
|
|
child: DecoratedBox( |
|
|
|
|
decoration: |
|
|
|
|
BoxDecoration(color: Colors.white), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}), |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
)), |
|
|
|
|
Expanded( |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/yq_zt.webp", |
|
|
|
|
width: 42.h, |
|
|
|
|
height: 42.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width: 50.w, |
|
|
|
|
child: Flex( |
|
|
|
|
children: List.generate(8, (_) { |
|
|
|
|
return SizedBox( |
|
|
|
|
width: 3.w, |
|
|
|
|
height: 1.w, |
|
|
|
|
child: DecoratedBox( |
|
|
|
|
decoration: |
|
|
|
|
BoxDecoration(color: Color(0xFF32A060)), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}), |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/invite_2.webp", |
|
|
|
|
width: 24.h, |
|
|
|
|
height: 24.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width: 44.w, |
|
|
|
|
child: Flex( |
|
|
|
|
children: List.generate(0, (_) { |
|
|
|
|
return SizedBox( |
|
|
|
|
width: 3.w, |
|
|
|
|
height: 1.h, |
|
|
|
|
child: DecoratedBox( |
|
|
|
|
decoration: |
|
|
|
|
BoxDecoration(color: Colors.white), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}), |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
SizedBox(height: 8.h), |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
width: 50.w, |
|
|
|
|
child: Text( |
|
|
|
|
"好友注册并获得10元优惠券", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
height: 1.3.h, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width: 43.w, |
|
|
|
|
child: Flex( |
|
|
|
|
children: List.generate(0, (_) { |
|
|
|
|
return SizedBox( |
|
|
|
|
width: 3.w, |
|
|
|
|
height: 1.h, |
|
|
|
|
child: DecoratedBox( |
|
|
|
|
decoration: |
|
|
|
|
BoxDecoration(color: Colors.white), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}), |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
)), |
|
|
|
|
Expanded( |
|
|
|
|
child: Column( |
|
|
|
|
children: [ |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceAround, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/zt_m.webp", |
|
|
|
|
width: 42.h, |
|
|
|
|
height: 42.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width: 50.w, |
|
|
|
|
child: Flex( |
|
|
|
|
children: List.generate(8, (_) { |
|
|
|
|
return SizedBox( |
|
|
|
|
width: 3.w, |
|
|
|
|
height: 1.h, |
|
|
|
|
child: DecoratedBox( |
|
|
|
|
decoration: |
|
|
|
|
BoxDecoration(color: Color(0xFF32A060)), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}), |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/invite_3.webp", |
|
|
|
|
width: 24.h, |
|
|
|
|
height: 24.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width: 44.w, |
|
|
|
|
child: Flex( |
|
|
|
|
children: List.generate(0, (_) { |
|
|
|
|
return SizedBox( |
|
|
|
|
width: 3.w, |
|
|
|
|
height: 1.h, |
|
|
|
|
child: DecoratedBox( |
|
|
|
|
decoration: |
|
|
|
|
BoxDecoration(color: Colors.white), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}), |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
SizedBox(height: 8.h), |
|
|
|
|
Row( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
Container( |
|
|
|
|
width: 50.w, |
|
|
|
|
child: Text( |
|
|
|
|
"好友完成首单", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
height: 1.3.h, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Container( |
|
|
|
|
width: 43.w, |
|
|
|
|
child: Flex( |
|
|
|
|
children: List.generate(0, (_) { |
|
|
|
|
return SizedBox( |
|
|
|
|
width: 3.w, |
|
|
|
|
height: 1.h, |
|
|
|
|
child: DecoratedBox( |
|
|
|
|
decoration: |
|
|
|
|
BoxDecoration(color: Colors.white), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}), |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
)), |
|
|
|
|
Column( |
|
|
|
|
children: [ |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/invite_q.webp", |
|
|
|
|
width: 42.h, |
|
|
|
|
height: 42.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
Image.asset( |
|
|
|
|
"assets/image/invite_4.webp", |
|
|
|
|
width: 24.h, |
|
|
|
|
height: 24.h, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
), |
|
|
|
|
SizedBox(height: 8.h), |
|
|
|
|
Container( |
|
|
|
|
width: 50.w, |
|
|
|
|
child: Text( |
|
|
|
|
"邀请达成获得奖励", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
height: 1.3.h, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
) |
|
|
|
|
], |
|
|
|
|
SizedBox(height: 8.h), |
|
|
|
|
Row( |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
children: [ |
|
|
|
|
Spacer(), |
|
|
|
|
Expanded( |
|
|
|
|
flex: 3, |
|
|
|
|
child: Text( |
|
|
|
|
"分享链接给好友", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
height: 1.3.h, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Spacer(), |
|
|
|
|
Expanded( |
|
|
|
|
flex: 3, |
|
|
|
|
child: Text( |
|
|
|
|
"好友注册并获得10元优惠券", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
height: 1.3.h, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Spacer(), |
|
|
|
|
Expanded( |
|
|
|
|
flex: 3, |
|
|
|
|
child: Text( |
|
|
|
|
"好友完成首单", |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
height: 1.3.h, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Spacer(), |
|
|
|
|
Expanded( |
|
|
|
|
flex: 3, |
|
|
|
|
child: Text( |
|
|
|
|
"邀请达成获得奖励", |
|
|
|
|
textAlign: TextAlign.center, |
|
|
|
|
style: TextStyle( |
|
|
|
|
fontSize: 12.sp, |
|
|
|
|
height: 1.3.h, |
|
|
|
|
fontWeight: MyFontWeight.regular, |
|
|
|
|
color: Color(0xFF181818), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Spacer(), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
], |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
dashedLine() { |
|
|
|
|
return LayoutBuilder( |
|
|
|
|
builder: (ctx, c) { |
|
|
|
|
double width = c.constrainWidth(); |
|
|
|
|
return Flex( |
|
|
|
|
children: List.generate( |
|
|
|
|
width ~/ 4, |
|
|
|
|
(_) { |
|
|
|
|
return Container( |
|
|
|
|
width: 2, |
|
|
|
|
margin: EdgeInsets.symmetric(horizontal: 1), |
|
|
|
|
height: 1, |
|
|
|
|
child: DecoratedBox( |
|
|
|
|
decoration: BoxDecoration(color: Color(0xFF32A060)), |
|
|
|
|
), |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
), |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
direction: Axis.horizontal, |
|
|
|
|
); |
|
|
|
|
}, |
|
|
|
|
); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
///我的成就 |
|
|
|
|
Widget achievement() { |
|
|
|
|
return Container( |
|
|
|
@ -630,8 +464,17 @@ class _InviteFriends extends State<InviteFriends> {
|
|
|
|
|
borderRadius: BorderRadius.circular(6), |
|
|
|
|
color: Color(0xFFFFFFFF), |
|
|
|
|
), |
|
|
|
|
margin: EdgeInsets.only(bottom: 12.h, left: 14.h, right: 14.h), |
|
|
|
|
padding: EdgeInsets.only(top: 6.h, left: 6, right: 6, bottom: 16.h), |
|
|
|
|
margin: EdgeInsets.only( |
|
|
|
|
bottom: 12.h, |
|
|
|
|
left: 14.h, |
|
|
|
|
right: 14.h, |
|
|
|
|
), |
|
|
|
|
padding: EdgeInsets.only( |
|
|
|
|
top: 6.h, |
|
|
|
|
left: 6, |
|
|
|
|
right: 6, |
|
|
|
|
bottom: 16.h, |
|
|
|
|
), |
|
|
|
|
child: Column( |
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween, |
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|