|
|
@ -1,5 +1,6 @@
|
|
|
|
import 'package:aku_new_community/base/base_style.dart';
|
|
|
|
import 'package:aku_new_community/base/base_style.dart';
|
|
|
|
import 'package:aku_new_community/constants/saas_api.dart';
|
|
|
|
import 'package:aku_new_community/constants/saas_api.dart';
|
|
|
|
|
|
|
|
import 'package:aku_new_community/gen/assets.gen.dart';
|
|
|
|
import 'package:aku_new_community/model/common/img_model.dart';
|
|
|
|
import 'package:aku_new_community/model/common/img_model.dart';
|
|
|
|
import 'package:aku_new_community/models/community/dynamic_detail_model.dart';
|
|
|
|
import 'package:aku_new_community/models/community/dynamic_detail_model.dart';
|
|
|
|
import 'package:aku_new_community/provider/user_provider.dart';
|
|
|
|
import 'package:aku_new_community/provider/user_provider.dart';
|
|
|
@ -12,6 +13,7 @@ import 'package:common_utils/common_utils.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/cupertino.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
import 'package:get/get.dart';
|
|
|
|
|
|
|
|
import 'package:like_button/like_button.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:provider/provider.dart';
|
|
|
|
import 'package:velocity_x/velocity_x.dart';
|
|
|
|
import 'package:velocity_x/velocity_x.dart';
|
|
|
|
|
|
|
|
|
|
|
@ -136,17 +138,25 @@ class _ChatCardDetailState extends State<ChatCardDetail> {
|
|
|
|
],
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Spacer(),
|
|
|
|
Image.asset(
|
|
|
|
LikeButton(
|
|
|
|
R.ASSETS_ICONS_COMMUNITY_LIKE_PNG,
|
|
|
|
size: 40.w,
|
|
|
|
width: 40.w,
|
|
|
|
likeBuilder: (bool isLiked){
|
|
|
|
height: 40.w,
|
|
|
|
return Image.asset(
|
|
|
|
|
|
|
|
isLiked ? Assets.icons.communityLikeIs.path : Assets.icons.communityLike.path,);
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
likeCount:widget.model.likes,
|
|
|
|
),
|
|
|
|
),
|
|
|
|
5.wb,
|
|
|
|
// Image.asset(
|
|
|
|
'${widget.model.likes}'
|
|
|
|
// Assets.icons.communityLikeIs.path,
|
|
|
|
.text
|
|
|
|
// width: 40.w,
|
|
|
|
.size(24.sp)
|
|
|
|
// height: 40.w,
|
|
|
|
.color(Color(0xFF999999))
|
|
|
|
// ),
|
|
|
|
.make(),
|
|
|
|
// 5.wb,
|
|
|
|
|
|
|
|
// '${widget.model.likes}'
|
|
|
|
|
|
|
|
// .text
|
|
|
|
|
|
|
|
// .size(24.sp)
|
|
|
|
|
|
|
|
// .color(Color(0xFF999999))
|
|
|
|
|
|
|
|
// .make(),
|
|
|
|
32.wb,
|
|
|
|
32.wb,
|
|
|
|
].row(),
|
|
|
|
].row(),
|
|
|
|
Column(
|
|
|
|
Column(
|
|
|
@ -191,6 +201,7 @@ class _ChatCardDetailState extends State<ChatCardDetail> {
|
|
|
|
]).paddingOnly(bottom: 16.w);
|
|
|
|
]).paddingOnly(bottom: 16.w);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// _renderLikeAndComment() {
|
|
|
|
// _renderLikeAndComment() {
|
|
|
|
// if (widget.model!.likeNames!.isEmpty &&
|
|
|
|
// if (widget.model!.likeNames!.isEmpty &&
|
|
|
|
// widget.model!.gambitThemeCommentVoList!.isEmpty) return SizedBox();
|
|
|
|
// widget.model!.gambitThemeCommentVoList!.isEmpty) return SizedBox();
|
|
|
|