修复头像未更新的问题

hmxc
小赖 4 years ago
parent 80e1b40418
commit e542e3d140

@ -108,7 +108,7 @@ class UserProvider extends ChangeNotifier {
},
showMessage: true,
);
await updateProfile();
_profileModel = await updateProfile();
cancel();
notifyListeners();
}

@ -27,6 +27,7 @@ class AkuAvatar extends StatelessWidget {
image: API.image(userProvider.profileModel.firstImg?.url ?? ''),
height: size ?? 72.w,
width: size ?? 72.w,
fit: BoxFit.cover,
),
)
: CircleAvatar(

Loading…
Cancel
Save