Skip to content

Commit

Permalink
🐛 Remove unnecessary pop in avatar view action.
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexV525 committed Feb 19, 2020
1 parent a7913fd commit 347672b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/pages/user/user_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,6 @@ class _UserPageState extends State<UserPage>
icon: Icon(Icons.account_circle),
text: '查看大头像',
onTap: () {
Navigator.of(context).pop();
navigatorState.pushNamed(
Routes.OPENJMU_IMAGE_VIEWER,
arguments: {
Expand All @@ -498,7 +497,6 @@ class _UserPageState extends State<UserPage>
icon: Icon(Icons.photo_library),
text: '更换头像',
onTap: () {
Navigator.of(context).pop();
navigatorState.pushNamed(Routes.OPENJMU_IMAGE_CROP).then((result) {
if (result != null && result) {
Instances.eventBus.fire(AvatarUpdatedEvent());
Expand Down

0 comments on commit 347672b

Please sign in to comment.