2、处理了消息中心的部分机子显示不全的问题 3、给白色的页面状态栏字体改成黑色 4、我的人脉,头像圆形的问题处理tags/0.0.2^2
@@ -1,4 +1,5 @@ | |||||
import 'package:flutter/material.dart'; | import 'package:flutter/material.dart'; | ||||
import 'package:flutter/services.dart'; | |||||
import 'package:tab_indicator_styler/tab_indicator_styler.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_bloc.dart'; | ||||
import 'package:zhiying_base_widget/pages/favorites_page/bloc/favorites_repository.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 'model/favorites_style_model.dart'; | ||||
import 'notifier/favorites_page_notifier.dart'; | import 'notifier/favorites_page_notifier.dart'; | ||||
/// | |||||
/// 收藏夹 | |||||
/// | |||||
class FavoritesPage extends StatelessWidget { | class FavoritesPage extends StatelessWidget { | ||||
@override | @override | ||||
Widget build(BuildContext context) { | Widget build(BuildContext context) { | ||||
@@ -220,6 +224,7 @@ class _FavoritesPageContainerState extends State<_FavoritesPageContainer> with T | |||||
Widget _buildAppBarWidget(FavoritesStyleModel model) { | Widget _buildAppBarWidget(FavoritesStyleModel model) { | ||||
return AppBar( | return AppBar( | ||||
backgroundColor: HexColor.fromHex(model?.appBarBgColor ?? '#FFFFFF'), | backgroundColor: HexColor.fromHex(model?.appBarBgColor ?? '#FFFFFF'), | ||||
brightness: Brightness.light, | |||||
leading: IconButton( | leading: IconButton( | ||||
icon: Icon( | icon: Icon( | ||||
Icons.arrow_back_ios, | Icons.arrow_back_ios, | ||||
@@ -228,7 +228,7 @@ class __MessageNoticePageContainerState extends State<_MessageNoticePageContaine | |||||
child: Column( | child: Column( | ||||
children: <Widget>[ | children: <Widget>[ | ||||
Container( | Container( | ||||
height: 30, | |||||
// height: 30, | |||||
width: double.infinity, | width: double.infinity, | ||||
child: Row( | child: Row( | ||||
children: <Widget>[ | children: <Widget>[ | ||||
@@ -527,6 +527,7 @@ class __MessageNoticePageContainerState extends State<_MessageNoticePageContaine | |||||
/// APPBar | /// APPBar | ||||
Widget _buildAppBarWidget(MessageNoticeStyleModel styleModel) { | Widget _buildAppBarWidget(MessageNoticeStyleModel styleModel) { | ||||
return AppBar( | return AppBar( | ||||
brightness: Brightness.light, | |||||
leading: IconButton( | leading: IconButton( | ||||
icon: Icon( | icon: Icon( | ||||
Icons.arrow_back_ios, | Icons.arrow_back_ios, | ||||
@@ -94,6 +94,7 @@ class _TeamDetailsPageState extends State<_TeamDetailsPage> { | |||||
/// 头部Bar | /// 头部Bar | ||||
SliverAppBar( | SliverAppBar( | ||||
// expandedHeight: 200.0, | // expandedHeight: 200.0, | ||||
brightness: Brightness.light, | |||||
leading: IconButton( | leading: IconButton( | ||||
icon: Icon( | icon: Icon( | ||||
Icons.arrow_back_ios, | Icons.arrow_back_ios, | ||||
@@ -84,14 +84,19 @@ class _GoodsDetailsImgWidgetContainerState extends State<GoodsDetailsImgWidgetCo | |||||
/// 图片列表 | /// 图片列表 | ||||
Widget _getImgListWidget(GoodsDetailsImgModel model){ | Widget _getImgListWidget(GoodsDetailsImgModel model){ | ||||
return Column( | |||||
children: model.image_detail_list.map((item){ | |||||
return CachedNetworkImage( | |||||
imageUrl: item ?? '', | |||||
fit: BoxFit.fitWidth, | |||||
); | |||||
}).toList(), | |||||
); | |||||
int length = model?.image_detail_list?.length ?? 0; | |||||
if(length > 0) { | |||||
return Column( | |||||
children: model.image_detail_list.map((item) { | |||||
return CachedNetworkImage( | |||||
imageUrl: item ?? '', | |||||
fit: BoxFit.fitWidth, | |||||
); | |||||
}).toList(), | |||||
); | |||||
}else{ | |||||
return Container(); | |||||
} | |||||
} | } | ||||
/// 标题Widget | /// 标题Widget | ||||
@@ -13,6 +13,7 @@ class TeamAppBarWidget extends StatelessWidget { | |||||
return SliverAppBar( | return SliverAppBar( | ||||
// expandedHeight: 200.0, | // expandedHeight: 200.0, | ||||
brightness: Brightness.light, | |||||
leading: IconButton( | leading: IconButton( | ||||
icon: Icon( | icon: Icon( | ||||
Icons.arrow_back_ios, | Icons.arrow_back_ios, | ||||
@@ -251,12 +251,15 @@ class __TeamRecommendWidgetState extends State<_TeamRecommendWidgetContainer> { | |||||
/// 头像widget | /// 头像widget | ||||
Widget _getAvatarWidget(TeamDataModel dataModel) { | 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 ?? '', | |||||
), | |||||
), | ), | ||||
); | ); | ||||
} | } | ||||