1.3.6代码提交
This commit is contained in:
parent
7478f85bbb
commit
dbb58ccaa6
@ -71,8 +71,8 @@ android {
|
|||||||
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
// For more information, see: https://docs.flutter.dev/deployment/android#reviewing-the-gradle-build-configuration.
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion flutter.targetSdkVersion
|
targetSdkVersion flutter.targetSdkVersion
|
||||||
versionCode 27
|
versionCode 28
|
||||||
versionName "1.3.5"
|
versionName "1.3.6"
|
||||||
manifestPlaceholders = [
|
manifestPlaceholders = [
|
||||||
vivo_APPID: "105669716",
|
vivo_APPID: "105669716",
|
||||||
vivo_APPKEY:"84f750207787376b310ca5b0d5969122",
|
vivo_APPKEY:"84f750207787376b310ca5b0d5969122",
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 4.6 KiB After Width: | Height: | Size: 3.1 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 1.7 KiB |
@ -25,6 +25,7 @@ class _WishDialogState extends State<WishDialog> {
|
|||||||
String giftId = '';
|
String giftId = '';
|
||||||
String withStr = '';
|
String withStr = '';
|
||||||
int selectedIndex = 1;
|
int selectedIndex = 1;
|
||||||
|
String tipStr = '';
|
||||||
|
|
||||||
List<String> optionList = [
|
List<String> optionList = [
|
||||||
'分享一张本人照片',
|
'分享一张本人照片',
|
||||||
@ -52,6 +53,7 @@ class _WishDialogState extends State<WishDialog> {
|
|||||||
if (info['name'] == '浪漫告白') {
|
if (info['name'] == '浪漫告白') {
|
||||||
selectedIndex = i ;
|
selectedIndex = i ;
|
||||||
giftId = info['id'].toString();
|
giftId = info['id'].toString();
|
||||||
|
tipStr = info['topHours'] != null ? info['topHours'].toString() : '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
setState(() {});
|
setState(() {});
|
||||||
@ -84,7 +86,7 @@ class _WishDialogState extends State<WishDialog> {
|
|||||||
onTap: () {
|
onTap: () {
|
||||||
selectedIndex = index;
|
selectedIndex = index;
|
||||||
giftId = info['id'].toString();
|
giftId = info['id'].toString();
|
||||||
// tipStr = info['topHours'] != null ? info['topHours'].toString() : '';
|
tipStr = info['topHours'] != null ? info['topHours'].toString() : '';
|
||||||
setState(() {});
|
setState(() {});
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
@ -148,13 +150,28 @@ class _WishDialogState extends State<WishDialog> {
|
|||||||
style: TextStyle(color: Colors.white, fontSize: 15.sp),
|
style: TextStyle(color: Colors.white, fontSize: 15.sp),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
height: 102.sp,
|
height: tipStr.isNotEmpty ? 125.sp : 102.sp,
|
||||||
margin: EdgeInsets.only(top: 12.sp),
|
margin: EdgeInsets.only(top: 12.sp),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(10.sp),
|
borderRadius: BorderRadius.circular(10.sp),
|
||||||
gradient: LinearGradient(
|
gradient: LinearGradient(
|
||||||
colors: [Color(0xFF132B40), Color(0xFF251240)])),
|
colors: [Color(0xFF132B40), Color(0xFF251240)])),
|
||||||
child: giftGridWidget(),
|
child: Column(
|
||||||
|
children: [
|
||||||
|
if (tipStr.isNotEmpty)
|
||||||
|
Padding(
|
||||||
|
padding: EdgeInsets.only(top:6.sp),
|
||||||
|
child: Text(
|
||||||
|
'礼物送出后,获得$tipStr小时的消息置顶',
|
||||||
|
style: TextStyle(
|
||||||
|
color: AppColor.mainColor,
|
||||||
|
fontSize: 12.sp,
|
||||||
|
fontWeight: FontWeight.w500),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
giftGridWidget(),
|
||||||
|
],
|
||||||
|
),
|
||||||
),
|
),
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:cached_network_image/cached_network_image.dart';
|
import 'package:cached_network_image/cached_network_image.dart';
|
||||||
@ -49,7 +48,9 @@ class _DiscoverState extends State<Discover>
|
|||||||
int index = 1;
|
int index = 1;
|
||||||
List tagList = [];
|
List tagList = [];
|
||||||
|
|
||||||
List<String> genderList = [];List<String> orientationList= [];List<String> roleList= [];
|
List<String> genderList = [];
|
||||||
|
List<String> orientationList = [];
|
||||||
|
List<String> roleList = [];
|
||||||
bool isPop = false;
|
bool isPop = false;
|
||||||
//获取屏幕宽度
|
//获取屏幕宽度
|
||||||
|
|
||||||
@ -61,7 +62,6 @@ class _DiscoverState extends State<Discover>
|
|||||||
|
|
||||||
double screenHeight = 0;
|
double screenHeight = 0;
|
||||||
|
|
||||||
|
|
||||||
void animateToOffset(ScrollController controller, double offset,
|
void animateToOffset(ScrollController controller, double offset,
|
||||||
void Function() onScrollCompleted) {
|
void Function() onScrollCompleted) {
|
||||||
controller
|
controller
|
||||||
@ -100,7 +100,7 @@ class _DiscoverState extends State<Discover>
|
|||||||
// 手指从下向上滑动
|
// 手指从下向上滑动
|
||||||
lastPage--;
|
lastPage--;
|
||||||
animateToOffset(
|
animateToOffset(
|
||||||
_scrollController, lastPage * ( screenHeight + 5.sp), () {});
|
_scrollController, lastPage * (screenHeight + 5.sp), () {});
|
||||||
} else if (touchRangeY > 0 && lastPage < list.length - 1) {
|
} else if (touchRangeY > 0 && lastPage < list.length - 1) {
|
||||||
// 从上向下
|
// 从上向下
|
||||||
lastPage++;
|
lastPage++;
|
||||||
@ -137,7 +137,6 @@ class _DiscoverState extends State<Discover>
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
sub = EventBusManager.on<DiscovrScrollTap>().listen((event) {
|
sub = EventBusManager.on<DiscovrScrollTap>().listen((event) {
|
||||||
pointerStart = Offset.zero;
|
pointerStart = Offset.zero;
|
||||||
pointerEnd = Offset.zero;
|
pointerEnd = Offset.zero;
|
||||||
@ -195,9 +194,7 @@ class _DiscoverState extends State<Discover>
|
|||||||
|
|
||||||
list[initIndex] = result['data'];
|
list[initIndex] = result['data'];
|
||||||
setState(() {});
|
setState(() {});
|
||||||
} catch (e) {
|
} catch (e) {}
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
loadGiftListData() async {
|
loadGiftListData() async {
|
||||||
@ -264,12 +261,9 @@ class _DiscoverState extends State<Discover>
|
|||||||
if (screenHeight == 0 && list.isNotEmpty) {
|
if (screenHeight == 0 && list.isNotEmpty) {
|
||||||
var size = context?.findRenderObject()?.paintBounds?.size;
|
var size = context?.findRenderObject()?.paintBounds?.size;
|
||||||
screenHeight = size!.height - 20.sp;
|
screenHeight = size!.height - 20.sp;
|
||||||
setState(() {
|
setState(() {});
|
||||||
|
|
||||||
});
|
|
||||||
print(size.toString());
|
print(size.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return list.isEmpty
|
return list.isEmpty
|
||||||
@ -289,7 +283,6 @@ class _DiscoverState extends State<Discover>
|
|||||||
onLoading: _onLoading,
|
onLoading: _onLoading,
|
||||||
enablePullUp: true,
|
enablePullUp: true,
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
|
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
var user = Users.fromJson(list[index]);
|
var user = Users.fromJson(list[index]);
|
||||||
|
|
||||||
@ -333,9 +326,12 @@ class _DiscoverState extends State<Discover>
|
|||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.all(2.sp),
|
padding: EdgeInsets.all(2.sp),
|
||||||
child: Swiper(
|
child: Swiper(
|
||||||
autoplay:
|
autoplay: user.images!.length == 1
|
||||||
user.images!.length == 1 ? false : true,
|
? false
|
||||||
loop: user.images!.length == 1 ? false : true,
|
: true,
|
||||||
|
loop: user.images!.length == 1
|
||||||
|
? false
|
||||||
|
: true,
|
||||||
itemBuilder:
|
itemBuilder:
|
||||||
(BuildContext context, int index) {
|
(BuildContext context, int index) {
|
||||||
// print(index);
|
// print(index);
|
||||||
@ -364,78 +360,37 @@ class _DiscoverState extends State<Discover>
|
|||||||
)),
|
)),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
left: 16.sp,
|
left: 5.sp,
|
||||||
top: 20.sp,
|
top: 10.sp,
|
||||||
child: Container(
|
child: Container(
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment:
|
||||||
|
CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
if (user.both_cities!.isNotEmpty)
|
|
||||||
Row(
|
|
||||||
children: [
|
|
||||||
Container(
|
|
||||||
width: 6.sp,
|
|
||||||
height: 6.sp,
|
|
||||||
margin:
|
|
||||||
EdgeInsets.only(right: 4.sp),
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
borderRadius:
|
|
||||||
BorderRadius.circular(3.sp),
|
|
||||||
color: const Color(0xFFCE51FF),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
// if (logic.online)
|
|
||||||
Text(
|
|
||||||
"你们都来过${user.both_cities!.first}",
|
|
||||||
style: TextStyle(
|
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 16.sp),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
if (user.both_interests!.isNotEmpty)
|
|
||||||
SizedBox(
|
|
||||||
height: 8.sp,
|
|
||||||
),
|
|
||||||
if (user.both_interests!.isNotEmpty)
|
|
||||||
Row(
|
|
||||||
children: [
|
|
||||||
Container(
|
|
||||||
width: 6.sp,
|
|
||||||
height: 6.sp,
|
|
||||||
margin:
|
|
||||||
EdgeInsets.only(right: 4.sp),
|
|
||||||
decoration: BoxDecoration(
|
|
||||||
borderRadius:
|
|
||||||
BorderRadius.circular(3.sp),
|
|
||||||
color: const Color(0xFFCE51FF),
|
|
||||||
),
|
|
||||||
),
|
|
||||||
// if (logic.online)
|
|
||||||
Text(
|
|
||||||
"你们有共同的圈子:${user.both_interests!.first['title']}",
|
|
||||||
style: TextStyle(
|
|
||||||
color: Colors.white,
|
|
||||||
fontSize: 16.sp),
|
|
||||||
),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
if (user.both_cities!.isNotEmpty)
|
|
||||||
SizedBox(
|
|
||||||
height: 8.sp,
|
|
||||||
),
|
|
||||||
if (onLineStr.isNotEmpty)
|
if (onLineStr.isNotEmpty)
|
||||||
Row(
|
Container(
|
||||||
|
height: 24.sp,
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
left: 6.sp, right: 6.sp),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.black
|
||||||
|
.withOpacity(0.35),
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.circular(
|
||||||
|
12.sp)),
|
||||||
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
width: 6.sp,
|
width: 6.sp,
|
||||||
height: 6.sp,
|
height: 6.sp,
|
||||||
margin:
|
margin: EdgeInsets.only(
|
||||||
EdgeInsets.only(right: 4.sp),
|
right: 4.sp),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(3.sp),
|
BorderRadius.circular(
|
||||||
color: const Color(0xFFCE51FF),
|
3.sp),
|
||||||
|
color:
|
||||||
|
const Color(0xFFCE51FF),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
// if (logic.online)
|
// if (logic.online)
|
||||||
@ -447,6 +402,85 @@ class _DiscoverState extends State<Discover>
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
if (user.both_interests!.isNotEmpty)
|
||||||
|
SizedBox(
|
||||||
|
height: 8.sp,
|
||||||
|
),
|
||||||
|
if (user.both_cities!.isNotEmpty)
|
||||||
|
Container(
|
||||||
|
height: 24.sp,
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
left: 6.sp, right: 6.sp),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.black
|
||||||
|
.withOpacity(0.35),
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.circular(
|
||||||
|
12.sp)),
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
width: 6.sp,
|
||||||
|
height: 6.sp,
|
||||||
|
margin: EdgeInsets.only(
|
||||||
|
right: 4.sp),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.circular(
|
||||||
|
3.sp),
|
||||||
|
color: const Color(
|
||||||
|
0xFFCE51FF),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// if (logic.online)
|
||||||
|
Text(
|
||||||
|
"你们都来过${user.both_cities!.first}",
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 16.sp),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)),
|
||||||
|
if (user.both_cities!.isNotEmpty)
|
||||||
|
SizedBox(
|
||||||
|
height: 8.sp,
|
||||||
|
),
|
||||||
|
if (user.both_interests!.isNotEmpty)
|
||||||
|
Container(
|
||||||
|
height: 24.sp,
|
||||||
|
padding: EdgeInsets.only(
|
||||||
|
left: 6.sp, right: 6.sp),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
color: Colors.black
|
||||||
|
.withOpacity(0.35),
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.circular(
|
||||||
|
12.sp)),
|
||||||
|
child: Row(
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
width: 6.sp,
|
||||||
|
height: 6.sp,
|
||||||
|
margin: EdgeInsets.only(
|
||||||
|
right: 4.sp),
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius:
|
||||||
|
BorderRadius.circular(
|
||||||
|
3.sp),
|
||||||
|
color: const Color(
|
||||||
|
0xFFCE51FF),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
// if (logic.online)
|
||||||
|
Text(
|
||||||
|
"你们有共同的圈子:${user.both_interests!.first['title']}",
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white,
|
||||||
|
fontSize: 16.sp),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
)),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
)),
|
)),
|
||||||
@ -462,11 +496,13 @@ class _DiscoverState extends State<Discover>
|
|||||||
width: 73.sp,
|
width: 73.sp,
|
||||||
height: 25.sp,
|
height: 25.sp,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
gradient: AppColor.mainVerLinearGradient,
|
gradient:
|
||||||
|
AppColor.mainVerLinearGradient,
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(12.5.sp)),
|
BorderRadius.circular(12.5.sp)),
|
||||||
child: Row(
|
child: Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment:
|
||||||
|
MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.only(left: 5.sp),
|
margin: EdgeInsets.only(left: 5.sp),
|
||||||
@ -495,7 +531,8 @@ class _DiscoverState extends State<Discover>
|
|||||||
width: Get.width - 32.sp,
|
width: Get.width - 32.sp,
|
||||||
padding: EdgeInsets.only(right: 0.sp),
|
padding: EdgeInsets.only(right: 0.sp),
|
||||||
child: Column(
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment:
|
||||||
|
CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
if (user.wxNum != null)
|
if (user.wxNum != null)
|
||||||
wxStatusWidget(
|
wxStatusWidget(
|
||||||
@ -519,17 +556,22 @@ class _DiscoverState extends State<Discover>
|
|||||||
fontWeight: FontWeight.bold),
|
fontWeight: FontWeight.bold),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.only(left: 5.sp),
|
margin:
|
||||||
|
EdgeInsets.only(left: 5.sp),
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
height: 18.sp,
|
height: 18.sp,
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
left: 6.sp, right: 6.sp),
|
left: 6.sp, right: 6.sp),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius:
|
borderRadius:
|
||||||
BorderRadius.circular(9.sp),
|
BorderRadius.circular(
|
||||||
gradient: const LinearGradient(
|
9.sp),
|
||||||
begin: Alignment(0.25, 0.5),
|
gradient:
|
||||||
end: Alignment(0.75, 0.5),
|
const LinearGradient(
|
||||||
|
begin: Alignment(
|
||||||
|
0.25, 0.5),
|
||||||
|
end: Alignment(
|
||||||
|
0.75, 0.5),
|
||||||
colors: [
|
colors: [
|
||||||
Color(0xff8DFFF8),
|
Color(0xff8DFFF8),
|
||||||
Color(0xffB5D3FF)
|
Color(0xffB5D3FF)
|
||||||
@ -562,11 +604,16 @@ class _DiscoverState extends State<Discover>
|
|||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
width: Get.width - 120.sp,
|
width: Get.width - 120.sp,
|
||||||
margin: EdgeInsets.only(top: 15.sp,bottom: 15.sp),
|
margin: EdgeInsets.only(
|
||||||
|
top: 15.sp, bottom: 15.sp),
|
||||||
child: Text(
|
child: Text(
|
||||||
user.signature! ?? '',
|
user.signature! ?? '',
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
maxLines: (user.signature! ?? '').length > 15 ? 2 : 1,
|
maxLines:
|
||||||
|
(user.signature! ?? '').length >
|
||||||
|
15
|
||||||
|
? 2
|
||||||
|
: 1,
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
fontSize: 16.sp,
|
fontSize: 16.sp,
|
||||||
color: const Color(0XFFF7FAFA)),
|
color: const Color(0XFFF7FAFA)),
|
||||||
@ -626,8 +673,8 @@ class _DiscoverState extends State<Discover>
|
|||||||
),
|
),
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
_showReportDialog(context,user.userId!.toString(),index);
|
_showReportDialog(context,
|
||||||
|
user.userId!.toString(), index);
|
||||||
},
|
},
|
||||||
child: Image.asset(
|
child: Image.asset(
|
||||||
getCircleImage(
|
getCircleImage(
|
||||||
@ -746,22 +793,20 @@ class _DiscoverState extends State<Discover>
|
|||||||
} else if (data['data']['user']['wxNum'].toString().isEmpty) {
|
} else if (data['data']['user']['wxNum'].toString().isEmpty) {
|
||||||
showAddWxPicker(false);
|
showAddWxPicker(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void sendNoLookData(String userId,int index) async {
|
void sendNoLookData(String userId, int index) async {
|
||||||
var data = await DioManager.instance.post(url: Api.uninterested + userId);
|
var data = await DioManager.instance.post(url: Api.uninterested + userId);
|
||||||
if (data['code'] == 200) {
|
if (data['code'] == 200) {
|
||||||
showOKToast('操作成功');
|
showOKToast('操作成功');
|
||||||
list.removeAt(index);
|
list.removeAt(index);
|
||||||
setState(() {
|
setState(() {});
|
||||||
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void _showReportDialog(BuildContext context,String userId,int currentIndex) {
|
void _showReportDialog(
|
||||||
|
BuildContext context, String userId, int currentIndex) {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
@ -865,7 +910,7 @@ class _DiscoverState extends State<Discover>
|
|||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
Get.back();
|
Get.back();
|
||||||
sendNoLookData(userId,currentIndex);
|
sendNoLookData(userId, currentIndex);
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
margin: EdgeInsets.only(top: 24.sp),
|
margin: EdgeInsets.only(top: 24.sp),
|
||||||
@ -908,7 +953,6 @@ class _DiscoverState extends State<Discover>
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class DiscoverDataRefresh {
|
class DiscoverDataRefresh {
|
||||||
String userId;
|
String userId;
|
||||||
DiscoverDataRefresh(this.userId);
|
DiscoverDataRefresh(this.userId);
|
||||||
|
|||||||
@ -32,7 +32,7 @@ class Gift_shopPage extends StatelessWidget {
|
|||||||
Get.toNamed(AppRoutes.BillActivity,arguments: 2);
|
Get.toNamed(AppRoutes.BillActivity,arguments: 2);
|
||||||
},
|
},
|
||||||
child: Text(
|
child: Text(
|
||||||
'礼物收入',
|
'账单',
|
||||||
style: TextStyle(color: Colors.white, fontSize: 14.sp),
|
style: TextStyle(color: Colors.white, fontSize: 14.sp),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -288,14 +288,14 @@ class Gift_shopPage extends StatelessWidget {
|
|||||||
child: Container(
|
child: Container(
|
||||||
height: 105.sp,
|
height: 105.sp,
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
color: isGet ? Color(0xFF3E3D4C) : Color(0x292836FF),
|
color: isGet ? Color(0x8F3E3D4C) : Color(0x0f2836FF),
|
||||||
borderRadius: BorderRadius.circular(4.sp),
|
borderRadius: BorderRadius.circular(4.sp),
|
||||||
),
|
),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
mainAxisAlignment: MainAxisAlignment.center,
|
||||||
children: [
|
children: [
|
||||||
Opacity(
|
Opacity(
|
||||||
opacity: isGet ? 1 : 0.5,
|
opacity: isGet ? 1 : 0.75,
|
||||||
child: Image.network(
|
child: Image.network(
|
||||||
info['icon'],
|
info['icon'],
|
||||||
width: 60.sp,
|
width: 60.sp,
|
||||||
|
|||||||
@ -378,7 +378,7 @@ class _LikelistPageState extends State<LikelistPage> with RouteAware {
|
|||||||
borderRadius: BorderRadius.circular(14),
|
borderRadius: BorderRadius.circular(14),
|
||||||
),
|
),
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(item.isLike ? "互相关注" : "关注",
|
child: Text(item.isLike ? "互相喜欢" : "喜欢",
|
||||||
style: TextStyle(fontSize: 14.sp, color: Colors.white)),
|
style: TextStyle(fontSize: 14.sp, color: Colors.white)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@ -178,7 +178,7 @@ class TIMConversationItem extends TIMUIKitStatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (userInfo != null)
|
if (userInfo != null)
|
||||||
(userInfo!.role ?? 0) > 0
|
(userInfo!.role ?? 0) > 0 && !(userInfo!.userID ?? '').contains('qz_prod_11_')
|
||||||
? Positioned(
|
? Positioned(
|
||||||
bottom: 0,
|
bottom: 0,
|
||||||
right: 0,
|
right: 0,
|
||||||
|
|||||||
@ -7,7 +7,9 @@ import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
import 'package:pull_to_refresh/pull_to_refresh.dart';
|
||||||
import '../../common/Widgets/base_tip_widget.dart';
|
import '../../common/Widgets/base_tip_widget.dart';
|
||||||
|
import '../../util/SharedPreferencesHelper.dart';
|
||||||
import '../circle/logic.dart';
|
import '../circle/logic.dart';
|
||||||
|
import '../minefragment/logic.dart';
|
||||||
import 'state.dart';
|
import 'state.dart';
|
||||||
|
|
||||||
class MsgLogic extends GetxController {
|
class MsgLogic extends GetxController {
|
||||||
@ -25,6 +27,7 @@ class MsgLogic extends GetxController {
|
|||||||
void onInit() {
|
void onInit() {
|
||||||
// TODO: implement onInit
|
// TODO: implement onInit
|
||||||
super.onInit();
|
super.onInit();
|
||||||
|
loadMyInfoData();
|
||||||
loadChatData();
|
loadChatData();
|
||||||
loadLikeData();
|
loadLikeData();
|
||||||
loadStatusData();
|
loadStatusData();
|
||||||
@ -63,7 +66,7 @@ class MsgLogic extends GetxController {
|
|||||||
var data =
|
var data =
|
||||||
await DioManager.getInstance().get(url: Api.queryQuickStart);
|
await DioManager.getInstance().get(url: Api.queryQuickStart);
|
||||||
if (data["code"] == 200) {
|
if (data["code"] == 200) {
|
||||||
if (data["data"] == 0) {
|
if (data["data"] == 2 || data["data"] == 0) {
|
||||||
var data = await DioManager.getInstance()
|
var data = await DioManager.getInstance()
|
||||||
.get(url: Api.startQuick);
|
.get(url: Api.startQuick);
|
||||||
if (data["code"] == 200) {
|
if (data["code"] == 200) {
|
||||||
@ -157,7 +160,7 @@ class MsgLogic extends GetxController {
|
|||||||
var data =
|
var data =
|
||||||
await DioManager.getInstance().get(url: Api.queryQuickStart);
|
await DioManager.getInstance().get(url: Api.queryQuickStart);
|
||||||
if (data["code"] == 200) {
|
if (data["code"] == 200) {
|
||||||
if (data["data"] == 0) {
|
if (data["data"] == 0 || data["data"] == 2) {
|
||||||
isStart = false;
|
isStart = false;
|
||||||
} else {
|
} else {
|
||||||
isStart = true;
|
isStart = true;
|
||||||
@ -165,4 +168,18 @@ class MsgLogic extends GetxController {
|
|||||||
}
|
}
|
||||||
update();
|
update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void loadMyInfoData() async {
|
||||||
|
var data = await DioManager.instance.get(url: Api.getUserMine);
|
||||||
|
var bean = BaseResponse<MineResponseBean>.fromJson(
|
||||||
|
data, (data) => MineResponseBean.fromJson(data));
|
||||||
|
if (bean.isSuccess()) {
|
||||||
|
var userInfoBean = bean.data.user;
|
||||||
|
SharedPreferencesHelper.getInstance().then((sharedPreferences) {
|
||||||
|
sharedPreferences.setInt(SharedPreferencesHelper.VIP, userInfoBean.vip);
|
||||||
|
sharedPreferences.setInt(
|
||||||
|
SharedPreferencesHelper.USERID, userInfoBean!.id);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -108,7 +108,7 @@ class MyfeedbacklistPage extends StatelessWidget {
|
|||||||
Container(
|
Container(
|
||||||
margin: EdgeInsets.only(left: 16.sp,right: 16.sp,bottom: 16.sp),
|
margin: EdgeInsets.only(left: 16.sp,right: 16.sp,bottom: 16.sp),
|
||||||
child: Text(
|
child: Text(
|
||||||
item.reply!=null?"反馈回复:"+item.reply:"审核中",
|
item.reply!=null?"反馈回复:"+item.reply:"待回复",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
fontSize: 12.0.sp,
|
fontSize: 12.0.sp,
|
||||||
|
|||||||
@ -42,11 +42,11 @@ class _SwiperPageState extends State<SwiperPage> {
|
|||||||
index: logic.index,
|
index: logic.index,
|
||||||
loop: false,
|
loop: false,
|
||||||
itemBuilder: (BuildContext context, int index) {
|
itemBuilder: (BuildContext context, int index) {
|
||||||
if (logic.index == index) {
|
// if (logic.index == index) {
|
||||||
return RepaintBoundary(
|
// return RepaintBoundary(
|
||||||
key: _globalKey,
|
// key: _globalKey,
|
||||||
child:itemWidget(logic,index));
|
// child:itemWidget(logic,index));
|
||||||
}
|
// }
|
||||||
return itemWidget(logic,index);
|
return itemWidget(logic,index);
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -60,26 +60,26 @@ class _SwiperPageState extends State<SwiperPage> {
|
|||||||
activeColor: Color(0xFFD14CFF),
|
activeColor: Color(0xFFD14CFF),
|
||||||
color: Colors.white)), //下面的分页小点
|
color: Colors.white)), //下面的分页小点
|
||||||
)),
|
)),
|
||||||
Positioned(
|
// Positioned(
|
||||||
bottom: Get.bottomBarHeight,
|
// bottom: Get.bottomBarHeight,
|
||||||
right: 15.sp,
|
// right: 15.sp,
|
||||||
child: InkWell(
|
// child: InkWell(
|
||||||
onTap: () {
|
// onTap: () {
|
||||||
_saveLocalImage();
|
// _saveLocalImage();
|
||||||
},
|
// },
|
||||||
child: Container(
|
// child: Container(
|
||||||
alignment: Alignment.center,
|
// alignment: Alignment.center,
|
||||||
padding: EdgeInsets.all(5.sp),
|
// padding: EdgeInsets.all(5.sp),
|
||||||
decoration: BoxDecoration(
|
// decoration: BoxDecoration(
|
||||||
color: Colors.black.withOpacity(0.5),
|
// color: Colors.black.withOpacity(0.5),
|
||||||
borderRadius: BorderRadius.circular(17.5.sp)),
|
// borderRadius: BorderRadius.circular(17.5.sp)),
|
||||||
child: Icon(
|
// child: Icon(
|
||||||
Icons.download,
|
// Icons.download,
|
||||||
color: Colors.white,
|
// color: Colors.white,
|
||||||
size: 25.sp,
|
// size: 25.sp,
|
||||||
),
|
// ),
|
||||||
),
|
// ),
|
||||||
))
|
// ))
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@ -98,9 +98,11 @@ class _SwiperPageState extends State<SwiperPage> {
|
|||||||
children: [
|
children: [
|
||||||
Container(
|
Container(
|
||||||
// color: Colors.red,
|
// color: Colors.red,
|
||||||
|
|
||||||
child: CachedNetworkImage(
|
child: CachedNetworkImage(
|
||||||
imageUrl: logic.imgList[index].toString().contains('?') ? logic.imgList[index].toString().split('?').first : logic.imgList[index].toString(),
|
imageUrl: logic.imgList[index].toString().contains('?') ? logic.imgList[index].toString().split('?').first : logic.imgList[index].toString(),
|
||||||
fit: BoxFit.contain,
|
fit: BoxFit.cover,
|
||||||
|
width: double.infinity,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Positioned(
|
Positioned(
|
||||||
|
|||||||
@ -350,7 +350,7 @@ class UserinfoLogic extends GetxController {
|
|||||||
'num': 1,
|
'num': 1,
|
||||||
'toUserId': userId
|
'toUserId': userId
|
||||||
});
|
});
|
||||||
if (result['code'] == 10000) {
|
if (result['code'] == 200) {
|
||||||
showOKToast('赠送成功');
|
showOKToast('赠送成功');
|
||||||
loadData();
|
loadData();
|
||||||
} else if (result['code'] == 31201) {
|
} else if (result['code'] == 31201) {
|
||||||
@ -389,6 +389,15 @@ class UserinfoLogic extends GetxController {
|
|||||||
});
|
});
|
||||||
} catch (_) {}
|
} catch (_) {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void sendWhatToWx() async {
|
||||||
|
var result = await DioManager.instance.get(url: Api.noticeWxNum + userId,);
|
||||||
|
if (result['code'] == 200) {
|
||||||
|
showOKToast('已提醒对方填写');
|
||||||
|
} else {
|
||||||
|
showOKToast(result['msg']);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class UserBean {
|
class UserBean {
|
||||||
|
|||||||
@ -29,7 +29,6 @@ class UserinfoPage extends StatefulWidget {
|
|||||||
class MyTabbedScreenState extends State<UserinfoPage>
|
class MyTabbedScreenState extends State<UserinfoPage>
|
||||||
with SingleTickerProviderStateMixin, RouteAware {
|
with SingleTickerProviderStateMixin, RouteAware {
|
||||||
late TabController _tabController;
|
late TabController _tabController;
|
||||||
late PageController _pageController;
|
|
||||||
|
|
||||||
ScrollController scrollController = ScrollController();
|
ScrollController scrollController = ScrollController();
|
||||||
bool isShowBlackTitle = false;
|
bool isShowBlackTitle = false;
|
||||||
@ -40,34 +39,35 @@ class MyTabbedScreenState extends State<UserinfoPage>
|
|||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
sub = EventBusManager.on<ScrollViewScrollTop>().listen((event) {
|
sub = EventBusManager.on<ScrollViewScrollTop>().listen((event) {
|
||||||
scrollController.animateTo(0, duration: Duration(microseconds: 200), curve: Curves.easeIn);
|
if (isSetState) {
|
||||||
|
isSetState = false;
|
||||||
|
setState(() {
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
scrollController.addListener(() {
|
scrollController.addListener(() {
|
||||||
if (scrollController.position.pixels ==
|
if (scrollController.position.pixels ==
|
||||||
scrollController.position.maxScrollExtent) {
|
scrollController.position.maxScrollExtent) {
|
||||||
print('2222');
|
print('2222');
|
||||||
isSetState = true;
|
isSetState = true;
|
||||||
|
EventBusManager.fire(ScrollViewIsEnd(true));
|
||||||
setState(() {
|
setState(() {
|
||||||
|
|
||||||
});
|
});
|
||||||
EventBusManager.fire(ScrollViewIsEnd(true));
|
|
||||||
} else {
|
} else {
|
||||||
EventBusManager.fire(ScrollViewIsEnd(false));
|
EventBusManager.fire(ScrollViewIsEnd(false));
|
||||||
if (isSetState) {
|
if (isSetState) {
|
||||||
|
isSetState = false;
|
||||||
setState(() {
|
setState(() {
|
||||||
|
|
||||||
});
|
});
|
||||||
isSetState = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print('111');
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
_pageController = PageController();
|
|
||||||
_tabController = TabController(length: 2, vsync: this);
|
_tabController = TabController(length: 2, vsync: this);
|
||||||
_tabController.animation!.addListener(_handleTabChange);
|
_tabController.animation!.addListener(_handleTabChange);
|
||||||
// _tabController.addListener(_handleTabChange);
|
|
||||||
// _tabController
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -106,15 +106,6 @@ class MyTabbedScreenState extends State<UserinfoPage>
|
|||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
_tabController.dispose();
|
_tabController.dispose();
|
||||||
OverlayState? overlayState = Overlay.of(Get.context!);
|
|
||||||
if (mainOverlayEntry != null) {
|
|
||||||
if (overlayState.debugIsVisible(mainOverlayEntry!)) {
|
|
||||||
mainOverlayEntry!.remove();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// overlayState.insert(entry);
|
|
||||||
|
|
||||||
sub.cancel();
|
sub.cancel();
|
||||||
routeObserver.unsubscribe(this);
|
routeObserver.unsubscribe(this);
|
||||||
super.dispose();
|
super.dispose();
|
||||||
@ -210,7 +201,44 @@ class MyTabbedScreenState extends State<UserinfoPage>
|
|||||||
// ),
|
// ),
|
||||||
// ),
|
// ),
|
||||||
)
|
)
|
||||||
: Container()),
|
: logic.userInfoBean!= null ? logic.userInfoBean!.wx_num.isEmpty ? GestureDetector(
|
||||||
|
onTap: () {
|
||||||
|
logic.sendWhatToWx();
|
||||||
|
},
|
||||||
|
child: Stack(
|
||||||
|
alignment: Alignment.center,
|
||||||
|
children: [
|
||||||
|
Container(
|
||||||
|
width: 101.sp,
|
||||||
|
height: 26.sp,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.circular(12.sp),
|
||||||
|
gradient: LinearGradient(
|
||||||
|
colors: [
|
||||||
|
Color(0xFF30FFD9),
|
||||||
|
Color(0xFFDD3DF4)
|
||||||
|
],
|
||||||
|
begin: Alignment.centerLeft,
|
||||||
|
end: Alignment.centerRight,
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
Container(
|
||||||
|
width: 100.sp,
|
||||||
|
decoration: BoxDecoration(
|
||||||
|
borderRadius: BorderRadius.circular(11.sp),
|
||||||
|
color: Color(0xFF240F3B)),
|
||||||
|
alignment: Alignment.center,
|
||||||
|
height: 24.sp,
|
||||||
|
child: Text(
|
||||||
|
'想要微信号',
|
||||||
|
style: TextStyle(
|
||||||
|
color: Colors.white, fontSize: 14.sp),
|
||||||
|
),
|
||||||
|
)
|
||||||
|
],
|
||||||
|
),
|
||||||
|
) : Container() : Container()),
|
||||||
body: Stack(
|
body: Stack(
|
||||||
// fit: StackFit.expand,
|
// fit: StackFit.expand,
|
||||||
children: [
|
children: [
|
||||||
@ -233,7 +261,7 @@ class MyTabbedScreenState extends State<UserinfoPage>
|
|||||||
toolbarHeight: 0,
|
toolbarHeight: 0,
|
||||||
foregroundColor: Colors.transparent,
|
foregroundColor: Colors.transparent,
|
||||||
backgroundColor: Colors.transparent,
|
backgroundColor: Colors.transparent,
|
||||||
expandedHeight: 372.sp + (logic.userInfoBean != null
|
expandedHeight: (!logic.isMe ? 372.sp : 312.sp) + (logic.userInfoBean != null
|
||||||
? logic.userInfoBean!.wx_num!.isNotEmpty
|
? logic.userInfoBean!.wx_num!.isNotEmpty
|
||||||
? 59.sp : 0 : 0),
|
? 59.sp : 0 : 0),
|
||||||
bottom: PreferredSize(
|
bottom: PreferredSize(
|
||||||
@ -622,7 +650,7 @@ class MyTabbedScreenState extends State<UserinfoPage>
|
|||||||
children: [
|
children: [
|
||||||
Stack(children: [
|
Stack(children: [
|
||||||
Opacity(
|
Opacity(
|
||||||
opacity: !isGet ? 0.5 : 1,
|
opacity: !isGet ? 0.6 : 1,
|
||||||
child: Image.network(
|
child: Image.network(
|
||||||
info['icon'],
|
info['icon'],
|
||||||
width: 50.sp,
|
width: 50.sp,
|
||||||
|
|||||||
@ -55,7 +55,7 @@ class _HomeCallOutViewState extends State<HomeCallOutView> with AutomaticKeepAli
|
|||||||
listsLg?.loadCallOutListData(widget.userId);
|
listsLg?.loadCallOutListData(widget.userId);
|
||||||
|
|
||||||
listsLg!.scrollController.addListener(() {
|
listsLg!.scrollController.addListener(() {
|
||||||
if (listsLg!.scrollController.offset < 0) {
|
if (listsLg!.scrollController.offset <= 0) {
|
||||||
EventBusManager.fire(ScrollViewScrollTop());
|
EventBusManager.fire(ScrollViewScrollTop());
|
||||||
isEnd = false;
|
isEnd = false;
|
||||||
setState(() {
|
setState(() {
|
||||||
@ -91,7 +91,7 @@ class _HomeCallOutViewState extends State<HomeCallOutView> with AutomaticKeepAli
|
|||||||
? loaddingWidget(true)
|
? loaddingWidget(true)
|
||||||
: ListView.builder(
|
: ListView.builder(
|
||||||
// physics: const AlwaysScrollableScrollPhysics(),
|
// physics: const AlwaysScrollableScrollPhysics(),
|
||||||
physics: isEnd ? AlwaysScrollableScrollPhysics() : NeverScrollableScrollPhysics(),
|
physics: isEnd ? BouncingScrollPhysics() : NeverScrollableScrollPhysics(),
|
||||||
// shrinkWrap:true,
|
// shrinkWrap:true,
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
bottom: MediaQuery.of(context).padding.bottom + 56.sp),
|
bottom: MediaQuery.of(context).padding.bottom + 56.sp),
|
||||||
|
|||||||
@ -302,4 +302,7 @@ class Api {
|
|||||||
static const chatRecommendFriend = '/msg-service/im/chat/recommend';
|
static const chatRecommendFriend = '/msg-service/im/chat/recommend';
|
||||||
//是否显示送礼物
|
//是否显示送礼物
|
||||||
static const isShow_give_gift = '/msg-service/message/show_give_gift/';
|
static const isShow_give_gift = '/msg-service/message/show_give_gift/';
|
||||||
|
|
||||||
|
//想要微信
|
||||||
|
static const noticeWxNum = '/user-service/user/updateWxNum/notice/';
|
||||||
}
|
}
|
||||||
@ -246,7 +246,7 @@ class DioManager {
|
|||||||
pushLoginPage();
|
pushLoginPage();
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (responseMap["code"] != 200 && responseMap["code"] != 10000 && !url.contains(Api.checkWxNumState)) {
|
if (responseMap["code"] != 200 && responseMap["code"] != 10000 && !url.contains(Api.checkWxNumState) && responseMap["code"] != 21201) {
|
||||||
showOKToast(responseMap['msg']);
|
showOKToast(responseMap['msg']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -671,6 +671,9 @@ sendCircleCustomMsg(String userId, String data, String desc) async {
|
|||||||
);
|
);
|
||||||
if (createCustomMessageRes.code == 0) {
|
if (createCustomMessageRes.code == 0) {
|
||||||
String? id = createCustomMessageRes.data?.id;
|
String? id = createCustomMessageRes.data?.id;
|
||||||
|
if (Get.currentRoute == AppRoutes.Chat) {
|
||||||
|
EventBusManager.fire(SendCoustomMessage(createCustomMessageRes));
|
||||||
|
} else {
|
||||||
V2TimValueCallback<V2TimMessage> sendMessageRes = await TencentImSDKPlugin
|
V2TimValueCallback<V2TimMessage> sendMessageRes = await TencentImSDKPlugin
|
||||||
.v2TIMManager
|
.v2TIMManager
|
||||||
.getMessageManager()
|
.getMessageManager()
|
||||||
@ -683,6 +686,7 @@ sendCircleCustomMsg(String userId, String data, String desc) async {
|
|||||||
sendMessageRes.data?.customElem?.extension; //自定义extension
|
sendMessageRes.data?.customElem?.extension; //自定义extension
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -44,7 +44,7 @@ void showFloatingButtonOverlay(
|
|||||||
child: Container(
|
child: Container(
|
||||||
width: Get.width - 16,
|
width: Get.width - 16,
|
||||||
// margin: EdgeInsets.only(top:10.sp),
|
// margin: EdgeInsets.only(top:10.sp),
|
||||||
padding: EdgeInsets.fromLTRB(16.sp, 16.sp, 16.sp, 0),
|
padding: EdgeInsets.fromLTRB(16.sp, 16.sp, 16.sp, 16.sp),
|
||||||
decoration: BoxDecoration(
|
decoration: BoxDecoration(
|
||||||
borderRadius: BorderRadius.circular(10),
|
borderRadius: BorderRadius.circular(10),
|
||||||
color: const Color(0xFF353443),
|
color: const Color(0xFF353443),
|
||||||
@ -62,7 +62,8 @@ void showFloatingButtonOverlay(
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 8),
|
const SizedBox(width: 8),
|
||||||
Column(
|
Expanded(
|
||||||
|
child: Column(
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
@ -93,7 +94,7 @@ void showFloatingButtonOverlay(
|
|||||||
),
|
),
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
top: 2.sp,
|
top: 2.sp,
|
||||||
bottom: 2.sp,
|
// bottom: 2.sp,
|
||||||
left: 10.sp,
|
left: 10.sp,
|
||||||
right: 10.sp,
|
right: 10.sp,
|
||||||
),
|
),
|
||||||
@ -107,7 +108,7 @@ void showFloatingButtonOverlay(
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 4),
|
||||||
Text( event == 0
|
Text( event == 0
|
||||||
? "看了这么久,给我点个喜欢呗~"
|
? "看了这么久,给我点个喜欢呗~"
|
||||||
: event == 1
|
: event == 1
|
||||||
@ -117,14 +118,14 @@ void showFloatingButtonOverlay(
|
|||||||
: "我也喜欢了你,一起聊聊呗~",
|
: "我也喜欢了你,一起聊聊呗~",
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
fontSize: 14.sp,
|
fontSize: 13.sp,
|
||||||
),
|
),
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
const Spacer(),
|
),
|
||||||
GestureDetector(
|
GestureDetector(
|
||||||
onTap: () {
|
onTap: () {
|
||||||
countdownTimer.cancel();
|
countdownTimer.cancel();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user