Commit 223c15931e43ee0613ce0a4ece9ab5ea05f8b42d

Authored by 常守达
1 parent dfe76e0d

fix(today):通知banner顺序

@@ -267,22 +267,23 @@ class TodayAdCarousel extends StatelessWidget { @@ -267,22 +267,23 @@ class TodayAdCarousel extends StatelessWidget {
267 !controller.userStateService.isBound; 267 !controller.userStateService.isBound;
268 268
269 final activeBanners = <Widget>[]; 269 final activeBanners = <Widget>[];
270 - if (showHrv) { 270 + if (showNotificationAuthorization) {
271 activeBanners.add( 271 activeBanners.add(
272 - TodayHrvAdBanner( 272 + TodayNotificationAuthorizationBanner(
273 controller: controller, 273 controller: controller,
274 showMargin: false, 274 showMargin: false,
275 ), 275 ),
276 ); 276 );
277 } 277 }
278 - if (showNotificationAuthorization) { 278 + if (showHrv) {
279 activeBanners.add( 279 activeBanners.add(
280 - TodayNotificationAuthorizationBanner( 280 + TodayHrvAdBanner(
281 controller: controller, 281 controller: controller,
282 showMargin: false, 282 showMargin: false,
283 ), 283 ),
284 ); 284 );
285 } 285 }
  286 +
286 if (showPartner) { 287 if (showPartner) {
287 activeBanners.add( 288 activeBanners.add(
288 TodayPartnerAdBanner( 289 TodayPartnerAdBanner(