add shop photo & entries

master
laiiihz 5 years ago
parent 5526ed82c4
commit d963593e76

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

@ -1,4 +1,7 @@
import 'package:flutter/material.dart';
import 'package:recook/pages/user/invite/diamond_recommand_page.dart';
import 'package:recook/utils/custom_route.dart';
import 'package:recook/utils/share_tool.dart';
import 'package:recook/widgets/custom_image_button.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:recook/constants/constants.dart';
@ -7,18 +10,25 @@ import 'package:recook/constants/header.dart';
class ShopManagerView extends StatelessWidget {
const ShopManagerView({Key key}) : super(key: key);
_buildGridItem(
{String title, String subTitle, String path, VoidCallback onTap}) {
_buildGridItem({
@required String title,
@required String subTitle,
@required String path,
VoidCallback onTap,
}) {
return CustomImageButton(
padding: EdgeInsets.zero,
onPressed: onTap,
child: Stack(
children: [
path == null
? Placeholder().material(color: Colors.grey)
: Image.asset(
path,
fit: BoxFit.cover,
),
ClipRRect(
borderRadius: BorderRadius.circular(5.w),
child: Image.asset(
path,
fit: BoxFit.cover,
alignment: Alignment.bottomRight,
),
),
Positioned(
left: 12.w,
top: 12.w,
@ -58,32 +68,40 @@ class ShopManagerView extends StatelessWidget {
_buildGridItem(
title: '团队扩招',
subTitle: '0元创业·轻松赚',
onTap: () {},
path: R.ASSETS_SHOP_GROUP_EXPAND_WEBP,
onTap: () =>
ShareTool().inviteShare(context, customTitle: Container()),
),
_buildGridItem(
title: '我的团队',
subTitle: '有福同享·真壕友',
onTap: () {},
onTap: () => AppRouter.push(context, RouteName.USER_INVITE),
path: R.ASSETS_SHOP_MY_GROUP_WEBP,
),
_buildGridItem(
title: '推荐钻石店铺',
subTitle: '推荐好友·福利双赢',
onTap: () {},
onTap: () => AppRouter.push(
context, RouteName.SHOP_RECOMMEND_UPGRADE_PAGE),
path: R.ASSETS_SHOP_RECOMMAND_DIAMOND_WEBP,
),
_buildGridItem(
title: '我的推荐',
subTitle: '呼朋唤友·享收益',
onTap: () {},
onTap: () => CRoute.push(context, DiamondRecommandPage()),
path: R.ASSETS_SHOP_MY_RECOMMAND_WEBP,
),
_buildGridItem(
title: '获取平台奖励',
subTitle: '平台可靠·奖励多',
onTap: () {},
path: R.ASSETS_SHOP_PLATFORM_AWARD_WEBP,
),
_buildGridItem(
title: '我的奖励',
subTitle: '积少成多·奖励丰厚',
onTap: () {},
path: R.ASSETS_SHOP_MY_AWARD_WEBP,
),
],
physics: NeverScrollableScrollPhysics(),

Loading…
Cancel
Save