From 5216f0068b4c1f85a06bb67f74dfd787f812e2ee Mon Sep 17 00:00:00 2001 From: PH2 <1293456824@qq.com> Date: Thu, 29 Oct 2020 14:47:08 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=A4=84=E7=90=86=E4=BA=86=E5=95=86?= =?UTF-8?q?=E5=93=81=E8=AF=A6=E6=83=85=E6=B2=A1=E5=9B=BE=E7=89=87=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E6=8A=A5=E9=94=99=202=E3=80=81=E5=A4=84?= =?UTF-8?q?=E7=90=86=E4=BA=86=E6=B6=88=E6=81=AF=E4=B8=AD=E5=BF=83=E7=9A=84?= =?UTF-8?q?=E9=83=A8=E5=88=86=E6=9C=BA=E5=AD=90=E6=98=BE=E7=A4=BA=E4=B8=8D?= =?UTF-8?q?=E5=85=A8=E7=9A=84=E9=97=AE=E9=A2=98=203=E3=80=81=E7=BB=99?= =?UTF-8?q?=E7=99=BD=E8=89=B2=E7=9A=84=E9=A1=B5=E9=9D=A2=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E6=A0=8F=E5=AD=97=E4=BD=93=E6=94=B9=E6=88=90=E9=BB=91=E8=89=B2?= =?UTF-8?q?=204=E3=80=81=E6=88=91=E7=9A=84=E4=BA=BA=E8=84=89=EF=BC=8C?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E5=9C=86=E5=BD=A2=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/favorites_page/favorites_page.dart | 5 +++++ .../message_notice_page.dart | 3 ++- .../team_details_page/team_details_page.dart | 1 + .../detail_img/goods_details_img.dart | 21 ++++++++++++------- .../team/appbar/team_app_bar_widget.dart | 1 + .../team/recommend/team_recommend_widget.dart | 15 +++++++------ 6 files changed, 31 insertions(+), 15 deletions(-) diff --git a/lib/pages/favorites_page/favorites_page.dart b/lib/pages/favorites_page/favorites_page.dart index 19ff195..d7364a7 100644 --- a/lib/pages/favorites_page/favorites_page.dart +++ b/lib/pages/favorites_page/favorites_page.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:flutter/services.dart'; import 'package:tab_indicator_styler/tab_indicator_styler.dart'; import 'package:zhiying_base_widget/pages/favorites_page/bloc/favorites_bloc.dart'; import 'package:zhiying_base_widget/pages/favorites_page/bloc/favorites_repository.dart'; @@ -14,6 +15,9 @@ import 'package:zhiying_comm/util/router_util.dart'; import 'model/favorites_style_model.dart'; import 'notifier/favorites_page_notifier.dart'; +/// +/// 收藏夹 +/// class FavoritesPage extends StatelessWidget { @override Widget build(BuildContext context) { @@ -220,6 +224,7 @@ class _FavoritesPageContainerState extends State<_FavoritesPageContainer> with T Widget _buildAppBarWidget(FavoritesStyleModel model) { return AppBar( backgroundColor: HexColor.fromHex(model?.appBarBgColor ?? '#FFFFFF'), + brightness: Brightness.light, leading: IconButton( icon: Icon( Icons.arrow_back_ios, diff --git a/lib/pages/message_notice_page/message_notice_page.dart b/lib/pages/message_notice_page/message_notice_page.dart index 7a1d242..b007d2e 100644 --- a/lib/pages/message_notice_page/message_notice_page.dart +++ b/lib/pages/message_notice_page/message_notice_page.dart @@ -228,7 +228,7 @@ class __MessageNoticePageContainerState extends State<_MessageNoticePageContaine child: Column( children: [ Container( - height: 30, + // height: 30, width: double.infinity, child: Row( children: [ @@ -527,6 +527,7 @@ class __MessageNoticePageContainerState extends State<_MessageNoticePageContaine /// APPBar Widget _buildAppBarWidget(MessageNoticeStyleModel styleModel) { return AppBar( + brightness: Brightness.light, leading: IconButton( icon: Icon( Icons.arrow_back_ios, diff --git a/lib/pages/team_details_page/team_details_page.dart b/lib/pages/team_details_page/team_details_page.dart index 75aec76..20a8d8c 100644 --- a/lib/pages/team_details_page/team_details_page.dart +++ b/lib/pages/team_details_page/team_details_page.dart @@ -94,6 +94,7 @@ class _TeamDetailsPageState extends State<_TeamDetailsPage> { /// 头部Bar SliverAppBar( // expandedHeight: 200.0, + brightness: Brightness.light, leading: IconButton( icon: Icon( Icons.arrow_back_ios, diff --git a/lib/widgets/goods_details/detail_img/goods_details_img.dart b/lib/widgets/goods_details/detail_img/goods_details_img.dart index b597396..6a3cff3 100644 --- a/lib/widgets/goods_details/detail_img/goods_details_img.dart +++ b/lib/widgets/goods_details/detail_img/goods_details_img.dart @@ -84,14 +84,19 @@ class _GoodsDetailsImgWidgetContainerState extends State 0) { + return Column( + children: model.image_detail_list.map((item) { + return CachedNetworkImage( + imageUrl: item ?? '', + fit: BoxFit.fitWidth, + ); + }).toList(), + ); + }else{ + return Container(); + } } /// 标题Widget diff --git a/lib/widgets/team/appbar/team_app_bar_widget.dart b/lib/widgets/team/appbar/team_app_bar_widget.dart index aaa5cee..e1e39c4 100644 --- a/lib/widgets/team/appbar/team_app_bar_widget.dart +++ b/lib/widgets/team/appbar/team_app_bar_widget.dart @@ -13,6 +13,7 @@ class TeamAppBarWidget extends StatelessWidget { return SliverAppBar( // expandedHeight: 200.0, + brightness: Brightness.light, leading: IconButton( icon: Icon( Icons.arrow_back_ios, diff --git a/lib/widgets/team/recommend/team_recommend_widget.dart b/lib/widgets/team/recommend/team_recommend_widget.dart index 1fe2dac..65d6a4a 100644 --- a/lib/widgets/team/recommend/team_recommend_widget.dart +++ b/lib/widgets/team/recommend/team_recommend_widget.dart @@ -251,12 +251,15 @@ class __TeamRecommendWidgetState extends State<_TeamRecommendWidgetContainer> { /// 头像widget Widget _getAvatarWidget(TeamDataModel dataModel) { - return Container( - width: 55, - // height: 55, - // color: Colors.red, - child: CachedNetworkImage( - imageUrl: dataModel?.referrerAvatar ?? '', + return ClipRRect( + borderRadius: BorderRadius.circular(55/2), + child: Container( + width: 55, + // height: 55, + // color: Colors.red, + child: CachedNetworkImage( + imageUrl: dataModel?.referrerAvatar ?? '', + ), ), ); }