Commit 4b0aa690ad2e5bac87dcdb3a34b6bfd39cbd0320
1 parent
698ce9fe
首页小鹅通入口优化
Showing
1 changed file
with
24 additions
and
33 deletions
lib/pages/home/view.dart
@@ -111,39 +111,30 @@ class _HomePageView extends StatelessWidget { | @@ -111,39 +111,30 @@ class _HomePageView extends StatelessWidget { | ||
111 | ), | 111 | ), |
112 | ), | 112 | ), |
113 | ), | 113 | ), |
114 | - Offstage( | ||
115 | - offstage: AppConfigHelper.shouldHidePay() || | ||
116 | - !UserUtil.isLogined(), | ||
117 | - child: Expanded( | ||
118 | - child: BlocBuilder<UserBloc, UserState>( | ||
119 | - builder: (context, userState) { | ||
120 | - return GestureDetector( | ||
121 | - onTap: () { | ||
122 | - _checkPermission(() { | ||
123 | - AudioPlayerUtil.getInstance().pause(); | ||
124 | - Navigator.of(context).pushNamed( | ||
125 | - AppRouteName.webView, | ||
126 | - arguments: { | ||
127 | - 'urlStr': AppConsts.xiaoeShopUrl, | ||
128 | - 'webViewTitle': 'Wow精选' | ||
129 | - }).then((value) => { | ||
130 | - AudioPlayerUtil.getInstance() | ||
131 | - .playAudio( | ||
132 | - AudioPlayerUtilType.touch), | ||
133 | - }); | ||
134 | - }, bloc); | ||
135 | - }, | ||
136 | - child: Column( | ||
137 | - mainAxisAlignment: MainAxisAlignment.center, | ||
138 | - children: [ | ||
139 | - Image.asset('xe_shop'.assetPng, | ||
140 | - width: 140.5.w, height: 172.h), | ||
141 | - 44.verticalSpace | ||
142 | - ], | ||
143 | - )); | ||
144 | - }), | ||
145 | - ), | ||
146 | - ), | 114 | + BlocBuilder<UserBloc, UserState>( |
115 | + builder: (context, userState) { | ||
116 | + return GestureDetector( | ||
117 | + onTap: () { | ||
118 | + _checkPermission(() { | ||
119 | + AudioPlayerUtil.getInstance().pause(); | ||
120 | + Navigator.of(context).pushNamed( | ||
121 | + AppRouteName.webView, | ||
122 | + arguments: { | ||
123 | + 'urlStr': AppConsts.xiaoeShopUrl, | ||
124 | + 'webViewTitle': 'Wow精选' | ||
125 | + }).then((value) => { | ||
126 | + AudioPlayerUtil.getInstance().playAudio( | ||
127 | + AudioPlayerUtilType.touch), | ||
128 | + }); | ||
129 | + }, bloc); | ||
130 | + }, | ||
131 | + child: Offstage( | ||
132 | + offstage: AppConfigHelper.shouldHidePay() || | ||
133 | + !UserUtil.isLogined(), | ||
134 | + child: Image.asset('xe_shop'.assetPng, | ||
135 | + width: 140.5.w, height: 172.h), | ||
136 | + )); | ||
137 | + }), | ||
147 | Expanded( | 138 | Expanded( |
148 | child: BlocBuilder<UserBloc, UserState>( | 139 | child: BlocBuilder<UserBloc, UserState>( |
149 | builder: (context, userState) { | 140 | builder: (context, userState) { |