修复头像未更新的问题

hmxc
小赖 4 years ago
parent 80e1b40418
commit e542e3d140

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

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

Loading…
Cancel
Save