瀏覽代碼

1、处理了商品详情没图片的时候报错

2、处理了消息中心的部分机子显示不全的问题
3、给白色的页面状态栏字体改成黑色
4、我的人脉,头像圆形的问题处理
tags/0.0.2^2
PH2 4 年之前
父節點
當前提交
5216f0068b
共有 6 個文件被更改,包括 31 次插入15 次删除
  1. +5
    -0
      lib/pages/favorites_page/favorites_page.dart
  2. +2
    -1
      lib/pages/message_notice_page/message_notice_page.dart
  3. +1
    -0
      lib/pages/team_details_page/team_details_page.dart
  4. +13
    -8
      lib/widgets/goods_details/detail_img/goods_details_img.dart
  5. +1
    -0
      lib/widgets/team/appbar/team_app_bar_widget.dart
  6. +9
    -6
      lib/widgets/team/recommend/team_recommend_widget.dart

+ 5
- 0
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,


+ 2
- 1
lib/pages/message_notice_page/message_notice_page.dart 查看文件

@@ -228,7 +228,7 @@ class __MessageNoticePageContainerState extends State<_MessageNoticePageContaine
child: Column(
children: <Widget>[
Container(
height: 30,
// height: 30,
width: double.infinity,
child: Row(
children: <Widget>[
@@ -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,


+ 1
- 0
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,


+ 13
- 8
lib/widgets/goods_details/detail_img/goods_details_img.dart 查看文件

@@ -84,14 +84,19 @@ class _GoodsDetailsImgWidgetContainerState extends State<GoodsDetailsImgWidgetCo

/// 图片列表
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


+ 1
- 0
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,


+ 9
- 6
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 ?? '',
),
),
);
}


Loading…
取消
儲存