|
@@ -116,8 +116,19 @@ class NewsfeedDetailPage extends HookConsumerWidget {
|
|
|
children: [
|
|
|
Container(
|
|
|
margin: const EdgeInsets.only(left: 15, right: 15,top: 14,bottom: 14),
|
|
|
- color: Colors.white,
|
|
|
padding: const EdgeInsets.only(left: 15, right: 15,top: 17,bottom: 17),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: context.appColors.textWhite,
|
|
|
+ borderRadius: BorderRadius.circular(10),
|
|
|
+ boxShadow: [
|
|
|
+ BoxShadow(
|
|
|
+ color: ColorUtils.string2Color("#E4E7EB").withOpacity(0.5),
|
|
|
+ spreadRadius: 0,
|
|
|
+ blurRadius: 4,
|
|
|
+ offset: const Offset(0, 4), // changes position of shadow
|
|
|
+ ),
|
|
|
+ ]
|
|
|
+ ),
|
|
|
child: Column(
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
@@ -178,9 +189,20 @@ class NewsfeedDetailPage extends HookConsumerWidget {
|
|
|
Widget _buildCommentListCard(BuildContext context, WidgetRef ref){
|
|
|
final vm = ref.read(newsfeedDetailVmProvider.notifier);
|
|
|
return Container(
|
|
|
- color: Colors.white,
|
|
|
margin: const EdgeInsets.only(left: 15, right: 15,top: 18,bottom: 18),
|
|
|
padding: const EdgeInsets.only(bottom: 30),
|
|
|
+ decoration: BoxDecoration(
|
|
|
+ color: context.appColors.textWhite,
|
|
|
+ borderRadius: BorderRadius.circular(10),
|
|
|
+ boxShadow: [
|
|
|
+ BoxShadow(
|
|
|
+ color: ColorUtils.string2Color("#E4E7EB").withOpacity(0.5),
|
|
|
+ spreadRadius: 0,
|
|
|
+ blurRadius: 4,
|
|
|
+ offset: const Offset(0, 4), // changes position of shadow
|
|
|
+ ),
|
|
|
+ ]
|
|
|
+ ),
|
|
|
child: Column(
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
@@ -229,7 +251,7 @@ class NewsfeedDetailPage extends HookConsumerWidget {
|
|
|
// 分割线
|
|
|
Container(
|
|
|
height: 1,
|
|
|
- color: ColorUtils.string2Color("#E6E6E6"),
|
|
|
+ color: context.appColors.dividerDefault,
|
|
|
),
|
|
|
|
|
|
Padding(
|
|
@@ -335,7 +357,7 @@ class NewsfeedDetailPage extends HookConsumerWidget {
|
|
|
child: Container(
|
|
|
height: 60,
|
|
|
width: MediaQuery.of(context).size.width,
|
|
|
- color: ColorUtils.string2Color("#4161D0"),
|
|
|
+ color: context.appColors.textPrimary,
|
|
|
child: Row(
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
@@ -345,48 +367,37 @@ class NewsfeedDetailPage extends HookConsumerWidget {
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- InkWell(
|
|
|
- onTap: () async {
|
|
|
- // bool result = await vm.handlerLikeClick();
|
|
|
- // if(result){
|
|
|
- // // 接口调用成功 修改 点赞的图标
|
|
|
- //
|
|
|
- // }
|
|
|
- },
|
|
|
- child: Wrap(
|
|
|
- children: [
|
|
|
- // MyLoadImage(
|
|
|
- // Assets.communityNewsfeedDetailLike,
|
|
|
- // width: 19,
|
|
|
- // height: 18,
|
|
|
- // ),
|
|
|
-
|
|
|
- MyLikeButton(
|
|
|
- key: _likeButtonKey,
|
|
|
- isLiked: false,
|
|
|
- isCustomIcon: true,
|
|
|
- customIconWidth: 20,
|
|
|
- customIconHeight: 18,
|
|
|
- customIconActiveAssets: Assets.communityLikeActive,
|
|
|
- customIconUnActiveAssets: Assets.communityNewsfeedDetailLike,
|
|
|
- onLike: () {
|
|
|
- Log.d('点击了like button');
|
|
|
- },
|
|
|
- ),
|
|
|
- const SizedBox(width: 10,),
|
|
|
+ Container(
|
|
|
+ alignment: Alignment.center,
|
|
|
+ padding: const EdgeInsets.only(left: 10,right: 10),
|
|
|
+ child: Wrap(
|
|
|
+ children: [
|
|
|
+ MyLikeButton(
|
|
|
+ key: _likeButtonKey,
|
|
|
+ isLiked: false,
|
|
|
+ isCustomIcon: true,
|
|
|
+ customIconWidth: 20,
|
|
|
+ customIconHeight: 18,
|
|
|
+ customIconActiveAssets: Assets.communityLikeActive,
|
|
|
+ customIconUnActiveAssets: Assets.communityNewsfeedDetailLike,
|
|
|
+ onLike: () {
|
|
|
+ Log.d('点击了like button');
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ const SizedBox(width: 10,),
|
|
|
|
|
|
- MyTextView(
|
|
|
- "Like",
|
|
|
- textColor: context.appColors.whiteBG,
|
|
|
- fontSize: 14,
|
|
|
- isFontRegular: true,
|
|
|
- ).onTap((){
|
|
|
- final state = _likeButtonKey.currentState;
|
|
|
- state?.triggerTap();
|
|
|
- }),
|
|
|
- ],
|
|
|
- )
|
|
|
- )
|
|
|
+ MyTextView(
|
|
|
+ "Like",
|
|
|
+ textColor: context.appColors.whiteBG,
|
|
|
+ fontSize: 14,
|
|
|
+ isFontRegular: true,
|
|
|
+ )
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ).onTap((){
|
|
|
+ final state = _likeButtonKey.currentState;
|
|
|
+ state?.triggerTap();
|
|
|
+ })
|
|
|
],
|
|
|
),
|
|
|
),
|
|
@@ -395,10 +406,9 @@ class NewsfeedDetailPage extends HookConsumerWidget {
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
children: [
|
|
|
- InkWell(
|
|
|
- onTap: () {
|
|
|
- vm.handlerCommentClick(context);
|
|
|
- },
|
|
|
+ Container(
|
|
|
+ alignment: Alignment.center,
|
|
|
+ padding: const EdgeInsets.only(left: 10,right: 10),
|
|
|
child: Wrap(
|
|
|
children: [
|
|
|
MyLoadImage(
|
|
@@ -415,7 +425,9 @@ class NewsfeedDetailPage extends HookConsumerWidget {
|
|
|
),
|
|
|
],
|
|
|
),
|
|
|
- )
|
|
|
+ ).onTap((){
|
|
|
+ vm.handlerCommentClick(context);
|
|
|
+ })
|
|
|
],
|
|
|
),
|
|
|
),
|