add 默认房屋状态管理

hmxc
张萌 4 years ago
parent 1257b68c04
commit acc1ab915f

@ -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';

@ -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();
}
}

Loading…
Cancel
Save