商城/详情/加入收藏——收藏功能需要隐藏

pull/1/head
戴余标 3 years ago
parent 4127b54e56
commit 71c6a7a1e4

@ -611,29 +611,29 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
40.wb, 40.wb,
GestureDetector( // GestureDetector(
onTap: () async { // onTap: () async {
await CollectionFunc.collection(_goodDetail!.id); // await CollectionFunc.collection(_goodDetail!.id);
_refreshController.callRefresh(); // _refreshController.callRefresh();
}, // },
child: Column( // child: Column(
crossAxisAlignment: CrossAxisAlignment.center, // crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center, // mainAxisAlignment: MainAxisAlignment.center,
children: [ // children: [
Image.asset( // Image.asset(
_goodDetail!.isCollection == 0 // _goodDetail!.isCollection == 0
? R.ASSETS_ICONS_ICON_GOOD_FAVOR_PNG // ? R.ASSETS_ICONS_ICON_GOOD_FAVOR_PNG
: R.ASSETS_ICONS_SHOP_FAVORFILL_PNG, // : R.ASSETS_ICONS_SHOP_FAVORFILL_PNG,
width: 48.w, // width: 48.w,
height: 48.w, // height: 48.w,
), // ),
Text( // Text(
'加入收藏', // '加入收藏',
style: TextStyle(fontSize: 20.sp, color: ktextPrimary), // style: TextStyle(fontSize: 20.sp, color: ktextPrimary),
), // ),
], // ],
), // ),
), // ),
40.wb, 40.wb,
GestureDetector( GestureDetector(
onTap: () async { onTap: () async {
@ -656,7 +656,7 @@ class _GoodDetailPageState extends State<GoodDetailPage> {
], ],
), ),
), ),
40.wb, 80.wb,
Row( Row(
children: [ children: [
GestureDetector( GestureDetector(

Loading…
Cancel
Save