优化bug

This commit is contained in:
tao
2025-08-29 17:53:05 +08:00
parent 8d7038b713
commit 9d13aa13e2
5 changed files with 16 additions and 9 deletions

View File

@@ -83,7 +83,7 @@ class _MyEditPageState extends State<MyEditPage> {
);
await updateProfileApi(selectionState.userProfile);
EasyLoading.dismiss();
context.pop();
context.pop(true);
}
@override

View File

@@ -35,8 +35,10 @@ class _MyPageState extends State<MyPage> with AutomaticKeepAliveClientMixin {
}
void _goEdit() async {
await context.push(RoutePaths.myEdit, extra: _userProfile);
_init();
var isUpload = await context.push(RoutePaths.myEdit, extra: _userProfile);
if (isUpload == true) {
_init();
}
}
void _showEditProfile() {
@@ -68,6 +70,7 @@ class _MyPageState extends State<MyPage> with AutomaticKeepAliveClientMixin {
@override
Widget build(BuildContext context) {
super.build(context);
return SafeArea(
child: ListView(
padding: EdgeInsets.all(15),

View File

@@ -214,7 +214,7 @@ class _LoginPageState extends State<LoginPage> {
left: 20,
right: 20,
),
child: Column(
child: ListView(
children: [
LogoBox(),
PageHeader(),