logo和名称替换
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:hgmj/assets_tool/images.dart';
|
||||
import 'package:hgmj/hj_model/mine/follow_user_list_model.dart';
|
||||
import 'package:hgmj/hj_model/video_model.dart';
|
||||
import 'package:hgmj/hj_utils/api_service/mine_service.dart';
|
||||
import 'package:hgmj/hj_utils/screen.dart';
|
||||
import 'package:hgmj/routers/jump_router.dart';
|
||||
import 'package:hgmj/tools_base/widget/net_image_widget.dart';
|
||||
import 'package:wydj/assets_tool/images.dart';
|
||||
import 'package:wydj/hj_model/mine/follow_user_list_model.dart';
|
||||
import 'package:wydj/hj_model/video_model.dart';
|
||||
import 'package:wydj/hj_utils/api_service/mine_service.dart';
|
||||
import 'package:wydj/hj_utils/screen.dart';
|
||||
import 'package:wydj/routers/jump_router.dart';
|
||||
import 'package:wydj/tools_base/widget/net_image_widget.dart';
|
||||
|
||||
import '../../../community/community_tag_page/community_tag_page.dart';
|
||||
import 'package:hgmj/extension/extensions.dart';
|
||||
import 'package:wydj/extension/extensions.dart';
|
||||
|
||||
/// 关注列表 - 女优项
|
||||
class FollowActressItem extends StatefulWidget {
|
||||
@@ -24,7 +24,8 @@ class FollowActressItem extends StatefulWidget {
|
||||
class _FollowActressItemState extends State<FollowActressItem> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return InkWell(enableFeedback: false,
|
||||
return InkWell(
|
||||
enableFeedback: false,
|
||||
onTap: () {
|
||||
// type:1 原跳女优主页 ActressMainPage(已下线),pushToPersonCenter 内 type==1 已 return null
|
||||
// → 当前点击不跳转,待产品确认替代页(objcId 与用户中心 uid 非同一体系,不能直接跳 UserCenterPage)
|
||||
@@ -77,7 +78,8 @@ class _FollowActressItemState extends State<FollowActressItem> {
|
||||
GestureDetector(
|
||||
onTap: () async {
|
||||
final isFollow = widget.model.hasFollow ?? false;
|
||||
final res = await MineService.postCollect(widget.model.objcId, 'actresss', !isFollow);
|
||||
final res = await MineService.postCollect(
|
||||
widget.model.objcId, 'actresss', !isFollow);
|
||||
if (res) {
|
||||
widget.model.hasFollow = !isFollow;
|
||||
setState(() {});
|
||||
@@ -85,7 +87,9 @@ class _FollowActressItemState extends State<FollowActressItem> {
|
||||
},
|
||||
child: Container(
|
||||
padding: EdgeInsets.symmetric(horizontal: 11.w, vertical: 5.h),
|
||||
decoration: BoxDecoration(color: Colors.white.withValues(alpha: .3), borderRadius: BorderRadius.circular(40)),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.white.withValues(alpha: .3),
|
||||
borderRadius: BorderRadius.circular(40)),
|
||||
child: Row(
|
||||
children: [
|
||||
if (widget.model.hasFollow == true) ...[
|
||||
@@ -119,7 +123,8 @@ class FollowBloggerItem extends StatefulWidget {
|
||||
class _FollowBloggerItemState extends State<FollowBloggerItem> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return InkWell(enableFeedback: false,
|
||||
return InkWell(
|
||||
enableFeedback: false,
|
||||
onTap: () {
|
||||
pushToPersonCenter(widget.model.uid ?? 0);
|
||||
},
|
||||
@@ -157,7 +162,10 @@ class _FollowBloggerItemState extends State<FollowBloggerItem> {
|
||||
'${widget.model.totalWorks ?? 0} 作品',
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
style: TextStyle(fontSize: 12, color: Color(0x8CFFFFFF), fontWeight: FontWeight.w400),
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: Color(0x8CFFFFFF),
|
||||
fontWeight: FontWeight.w400),
|
||||
),
|
||||
),
|
||||
SizedBox(width: 12),
|
||||
@@ -166,7 +174,10 @@ class _FollowBloggerItemState extends State<FollowBloggerItem> {
|
||||
'${widget.model.fans?.countStr} 粉丝',
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
style: TextStyle(fontSize: 12, color: Color(0x8CFFFFFF), fontWeight: FontWeight.w400),
|
||||
style: TextStyle(
|
||||
fontSize: 12,
|
||||
color: Color(0x8CFFFFFF),
|
||||
fontWeight: FontWeight.w400),
|
||||
),
|
||||
),
|
||||
],
|
||||
@@ -199,7 +210,8 @@ class FollowTopicItem extends StatefulWidget {
|
||||
class _FollowTopicItemState extends State<FollowTopicItem> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return InkWell(enableFeedback: false,
|
||||
return InkWell(
|
||||
enableFeedback: false,
|
||||
onTap: () {
|
||||
Get.to(() => CommunityTagDetailPage(model: widget.model));
|
||||
},
|
||||
@@ -217,7 +229,9 @@ class _FollowTopicItemState extends State<FollowTopicItem> {
|
||||
borderRadius: 8,
|
||||
),
|
||||
Container(
|
||||
decoration: BoxDecoration(color: Colors.black.withValues(alpha: .6), borderRadius: BorderRadius.circular(8)),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.black.withValues(alpha: .6),
|
||||
borderRadius: BorderRadius.circular(8)),
|
||||
),
|
||||
Column(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
@@ -248,7 +262,8 @@ class _FollowTopicItemState extends State<FollowTopicItem> {
|
||||
GestureDetector(
|
||||
onTap: () async {
|
||||
final isCollected = widget.model.hasCollected ?? false;
|
||||
final res = await MineService.postCollect(widget.model.id, "tag", !isCollected);
|
||||
final res = await MineService.postCollect(
|
||||
widget.model.id, "tag", !isCollected);
|
||||
if (res) {
|
||||
widget.model.hasCollected = !isCollected;
|
||||
setState(() {});
|
||||
@@ -258,7 +273,9 @@ class _FollowTopicItemState extends State<FollowTopicItem> {
|
||||
width: 108,
|
||||
height: 27,
|
||||
alignment: Alignment.center,
|
||||
decoration: BoxDecoration(color: Color(0xffFFC000), borderRadius: BorderRadius.circular(6)),
|
||||
decoration: BoxDecoration(
|
||||
color: Color(0xffFFC000),
|
||||
borderRadius: BorderRadius.circular(6)),
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: [
|
||||
|
||||
Reference in New Issue
Block a user