From acc1ab915f3390581cc9629d66039888ee4bdc0f Mon Sep 17 00:00:00 2001 From: zhang <494089941@qq.com> Date: Tue, 2 Feb 2021 18:10:27 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E9=BB=98=E8=AE=A4=E6=88=BF=E5=B1=8B?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/life_pay/widget/my_house_page.dart | 1 - lib/provider/user_provider.dart | 9 +++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/lib/pages/life_pay/widget/my_house_page.dart b/lib/pages/life_pay/widget/my_house_page.dart index c9f73687..ee2aacc2 100644 --- a/lib/pages/life_pay/widget/my_house_page.dart +++ b/lib/pages/life_pay/widget/my_house_page.dart @@ -2,7 +2,6 @@ import 'package:akuCommunity/base/base_style.dart'; import 'package:akuCommunity/pages/goods_deto_page/deto_create_page/widget/common_radio.dart'; import 'package:akuCommunity/widget/bee_divider.dart'; import 'package:akuCommunity/widget/bee_scaffold.dart'; -import 'package:akuCommunity/widget/buttons/radio_button.dart'; import 'package:flutter/material.dart'; import 'package:akuCommunity/utils/headers.dart'; diff --git a/lib/provider/user_provider.dart b/lib/provider/user_provider.dart index 9120b584..2285d891 100644 --- a/lib/provider/user_provider.dart +++ b/lib/provider/user_provider.dart @@ -133,4 +133,13 @@ class UserProvider extends ChangeNotifier { await updateProfile(); } } + + ///设置默认房屋 + String _currentHouse = + await SignFunc.getUserDetail().then((value) => value.estateNames.first); + String get currentHouse => _currentHouse; + setCurrentHouse(String house) { + _currentHouse = house; + notifyListeners(); + } }