隐藏商城相关内容

hmxc
张萌 4 years ago
parent 0655d1fd20
commit 065801b589

@ -138,50 +138,50 @@ class _HomePageState extends State<HomePage>
], ],
), ),
SizedBox(height: 24.w), SizedBox(height: 24.w),
Column( // Column(
children: [ // children: [
HomeTagBar( // HomeTagBar(
title: '社区团购', // title: '社区团购',
tag: '团购', // tag: '团购',
isShowImage: false, // isShowImage: false,
), // ),
HomeCard( // HomeCard(
isActivity: false, // isActivity: false,
title: '新疆库尔阿勒4.5斤,仙人蕉 香甜可口', // title: '新疆库尔阿勒4.5斤,仙人蕉 香甜可口',
subtitleOne: '中国新疆', // subtitleOne: '中国新疆',
subtitleTwo: '2020年07月03日', // subtitleTwo: '2020年07月03日',
imagePath: // imagePath:
'http://news.eastday.com/d/file/tga/2013-02-17/c2e7bd7fca1ed2ecf5d50dc9fb30275d.jpg', // 'http://news.eastday.com/d/file/tga/2013-02-17/c2e7bd7fca1ed2ecf5d50dc9fb30275d.jpg',
), // ),
HomeCard( // HomeCard(
isActivity: false, // isActivity: false,
title: '刚果柠檬大果4盒 鲜果新鲜采摘15斤', // title: '刚果柠檬大果4盒 鲜果新鲜采摘15斤',
subtitleOne: '非洲刚果', // subtitleOne: '非洲刚果',
subtitleTwo: '2020年08月09日', // subtitleTwo: '2020年08月09日',
imagePath: // imagePath:
'http://5b0988e595225.cdn.sohucs.com/images/20180203/328e145f84c54dd08d1b11b890109862.jpeg', // 'http://5b0988e595225.cdn.sohucs.com/images/20180203/328e145f84c54dd08d1b11b890109862.jpeg',
), // ),
], // ],
), // ),
SizedBox(height: 30.w), // SizedBox(height: 30.w),
HomeTagBar( // HomeTagBar(
title: '社区商城', // title: '社区商城',
tag: '团购', // tag: '团购',
isShowImage: false, // isShowImage: false,
isShowTitle: true, // isShowTitle: true,
), // ),
], ],
), ),
), ),
SliverPadding( // SliverPadding(
padding: EdgeInsets.only( // padding: EdgeInsets.only(
top: 30.w, // top: 30.w,
left: 32.w, // left: 32.w,
right: 32.w, // right: 32.w,
), // ),
sliver: _shopList.length == 0 // sliver: _shopList.length == 0
? SliverToBoxAdapter(child: GoodsCardSkeleton()) // ? SliverToBoxAdapter(child: GoodsCardSkeleton())
: SliverGoodsCard(shoplist: _shopList)), // : SliverGoodsCard(shoplist: _shopList)),
], ],
), ),
), ),

@ -30,7 +30,7 @@ class _TabNavigatorState extends State<TabNavigator> {
super.initState(); super.initState();
_pages = [ _pages = [
HomePage(), HomePage(),
MarketPage(), // MarketPage(),
PropertyIndex(), PropertyIndex(),
CommunityIndex(), CommunityIndex(),
PersonalIndex() PersonalIndex()
@ -62,13 +62,12 @@ class _TabNavigatorState extends State<TabNavigator> {
Widget build(BuildContext context) { Widget build(BuildContext context) {
ScreenUtil.init(context, ScreenUtil.init(context,
designSize: Size(750, 1334), allowFontScaling: true); designSize: Size(750, 1334), allowFontScaling: true);
double iconSize = ScreenUtil().setWidth(44);
// //
List<BottomNavigationBarItem> _bottomNav = <BottomNavigationBarItem>[ List<BottomNavigationBarItem> _bottomNav = <BottomNavigationBarItem>[
_buildBottomBar( _buildBottomBar(
'首页', AssetsImage.TAB_HOME_UNSELECT, AssetsImage.TAB_HOME_SELECT), '首页', AssetsImage.TAB_HOME_UNSELECT, AssetsImage.TAB_HOME_SELECT),
_buildBottomBar( // _buildBottomBar(
'商城', AssetsImage.TAB_MARKET_UNSELECT, AssetsImage.TAB_MARKET_SELECT), // '商城', AssetsImage.TAB_MARKET_UNSELECT, AssetsImage.TAB_MARKET_SELECT),
_buildBottomBar( _buildBottomBar(
'物业', AssetsImage.TAB_HOUSE_UNSELECT, AssetsImage.TAB_HOUSE_SELECT), '物业', AssetsImage.TAB_HOUSE_UNSELECT, AssetsImage.TAB_HOUSE_SELECT),
_buildBottomBar('社区', AssetsImage.TAB_MESSAGE_UNSELECT, _buildBottomBar('社区', AssetsImage.TAB_MESSAGE_UNSELECT,

Loading…
Cancel
Save