Skip to content

Commit

Permalink
🚸 Update last modified int if new avatar uploaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 19, 2020
1 parent 7452c4f commit ece2c3c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/widgets/image/image_crop_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ class _ImageCropPageState extends State<ImageCropPage> {
await NetUtils.postWithCookieSet(API.userAvatarUpload, data: formData);
_controller.changeState('success', '头像更新成功');
_cropping = false;
Future.delayed(Duration(milliseconds: 2200), () {
UserAPI.avatarLastModified = DateTime.now().millisecondsSinceEpoch;
Future<void>.delayed(2200.milliseconds, () {
Navigator.of(context).pop(true);
});
} catch (e) {
Expand Down

0 comments on commit ece2c3c

Please sign in to comment.