From 1acc472d696458c2a8fd9eb54155ecdc3c129297 Mon Sep 17 00:00:00 2001 From: zhangmeng <494089941@qq.com> Date: Wed, 12 Jan 2022 18:02:02 +0800 Subject: [PATCH] bug fix --- lib/pages/property/property_page.dart | 4 +++- lib/pages/services/old_age/equipment_list_page.dart | 9 ++++----- lib/ui/profile/new_house/add_house_page.dart | 13 +++++++++++++ 3 files changed, 20 insertions(+), 6 deletions(-) diff --git a/lib/pages/property/property_page.dart b/lib/pages/property/property_page.dart index d7b118d6..cb7d4cc2 100644 --- a/lib/pages/property/property_page.dart +++ b/lib/pages/property/property_page.dart @@ -168,7 +168,9 @@ class _PropertyPageState extends State ), Spacer(), Text( - userProvider.myHouses.first.communityName, + userProvider.myHouses.isEmpty + ? '' + : userProvider.myHouses.first.communityName, style: TextStyle( fontSize: 28.sp, color: Colors.white.withOpacity(0.85), diff --git a/lib/pages/services/old_age/equipment_list_page.dart b/lib/pages/services/old_age/equipment_list_page.dart index 9f445ced..25f1cd4e 100644 --- a/lib/pages/services/old_age/equipment_list_page.dart +++ b/lib/pages/services/old_age/equipment_list_page.dart @@ -3,7 +3,6 @@ import 'package:aku_new_community/gen/assets.gen.dart'; import 'package:aku_new_community/pages/services/old_age/add_equipment_page.dart'; import 'package:aku_new_community/widget/bee_divider.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart'; -import 'package:aku_new_community/widget/others/user_tool.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; @@ -53,10 +52,10 @@ class _EquipmentListPageState extends State { padding: EdgeInsets.only(left: 24.w, bottom: 24.w, right: 24.w), child: Row( children: [ - CircleAvatar( - child: Image.network( - UserTool.userProvider.userInfoModel?.imgUrls.first.url ?? ''), - ), + // CircleAvatar( + // child: Image.network( + // UserTool.userProvider.userInfoModel?.imgUrls.first.url ?? ''), + // ), 24.w.widthBox, '陈东强'.text.size(28.sp).color(Colors.black).make(), Spacer(), diff --git a/lib/ui/profile/new_house/add_house_page.dart b/lib/ui/profile/new_house/add_house_page.dart index de8c5f4b..fcfcb676 100644 --- a/lib/ui/profile/new_house/add_house_page.dart +++ b/lib/ui/profile/new_house/add_house_page.dart @@ -178,4 +178,17 @@ class _AddHousePageState extends State { )), ); } + + Widget _propertyRight() { + return Container( + width: 686.w, + decoration: BoxDecoration( + color: Colors.white, + borderRadius: BorderRadius.circular(16.w), + ), + child: Column( + children: [], + ), + ); + } }