修复我的房屋为空的问题

pull/1/head
张萌 3 years ago
parent cbd18b02d2
commit de350805cd

@ -40,7 +40,7 @@ class _ApplyRecordPageState extends State<ApplyRecordPage> {
}
},
onLoad: () async {},
child: !_models.isEmpty
child: _models.isEmpty
? Container()
: ListView(
padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 24.w),

@ -1,9 +1,3 @@
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/extensions/widget_list_ext.dart';
import 'package:aku_new_community/gen/assets.gen.dart';
@ -16,6 +10,10 @@ import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:aku_new_community/widget/dialog/certification_dialog.dart';
import 'package:aku_new_community/widget/others/user_tool.dart';
import 'package:aku_new_community/widget/tag/bee_tag.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.dart';
class MyHousePage extends StatefulWidget {
const MyHousePage({Key? key}) : super(key: key);
@ -25,6 +23,15 @@ class MyHousePage extends StatefulWidget {
}
class _MyHousePageState extends State<MyHousePage> {
@override
void initState() {
Future.delayed(Duration(milliseconds: 0), () async {
await UserTool.userProvider.updateMyHouseInfo();
setState(() {});
});
super.initState();
}
@override
Widget build(BuildContext context) {
return BeeScaffold(

Loading…
Cancel
Save