diff --git a/lib/pages/home/view.dart b/lib/pages/home/view.dart index 41515e2..318d533 100644 --- a/lib/pages/home/view.dart +++ b/lib/pages/home/view.dart @@ -111,39 +111,30 @@ class _HomePageView extends StatelessWidget { ), ), ), - Offstage( - offstage: AppConfigHelper.shouldHidePay() || - !UserUtil.isLogined(), - child: Expanded( - child: BlocBuilder( - builder: (context, userState) { - return GestureDetector( - onTap: () { - _checkPermission(() { - AudioPlayerUtil.getInstance().pause(); - Navigator.of(context).pushNamed( - AppRouteName.webView, - arguments: { - 'urlStr': AppConsts.xiaoeShopUrl, - 'webViewTitle': 'Wow精选' - }).then((value) => { - AudioPlayerUtil.getInstance() - .playAudio( - AudioPlayerUtilType.touch), - }); - }, bloc); - }, - child: Column( - mainAxisAlignment: MainAxisAlignment.center, - children: [ - Image.asset('xe_shop'.assetPng, - width: 140.5.w, height: 172.h), - 44.verticalSpace - ], - )); - }), - ), - ), + BlocBuilder( + builder: (context, userState) { + return GestureDetector( + onTap: () { + _checkPermission(() { + AudioPlayerUtil.getInstance().pause(); + Navigator.of(context).pushNamed( + AppRouteName.webView, + arguments: { + 'urlStr': AppConsts.xiaoeShopUrl, + 'webViewTitle': 'Wow精选' + }).then((value) => { + AudioPlayerUtil.getInstance().playAudio( + AudioPlayerUtilType.touch), + }); + }, bloc); + }, + child: Offstage( + offstage: AppConfigHelper.shouldHidePay() || + !UserUtil.isLogined(), + child: Image.asset('xe_shop'.assetPng, + width: 140.5.w, height: 172.h), + )); + }), Expanded( child: BlocBuilder( builder: (context, userState) {