From d3240fd261c36fb78d3432504c6a28b9108ed404 Mon Sep 17 00:00:00 2001 From: Krille Date: Sun, 5 Feb 2023 10:09:31 +0100 Subject: [PATCH] chore: Follow up remove hero animation --- lib/pages/chat_list/client_chooser_button.dart | 15 ++++++--------- lib/pages/settings/settings_view.dart | 13 +++++-------- 2 files changed, 11 insertions(+), 17 deletions(-) diff --git a/lib/pages/chat_list/client_chooser_button.dart b/lib/pages/chat_list/client_chooser_button.dart index da9b27f4..28b4669a 100644 --- a/lib/pages/chat_list/client_chooser_button.dart +++ b/lib/pages/chat_list/client_chooser_button.dart @@ -213,15 +213,12 @@ class ClientChooserButton extends StatelessWidget { child: Material( color: Colors.transparent, borderRadius: BorderRadius.circular(99), - child: Hero( - tag: 'profilesettings', - child: Avatar( - mxContent: snapshot.data?.avatarUrl, - name: snapshot.data?.displayName ?? - matrix.client.userID!.localpart, - size: 28, - fontSize: 12, - ), + child: Avatar( + mxContent: snapshot.data?.avatarUrl, + name: snapshot.data?.displayName ?? + matrix.client.userID!.localpart, + size: 28, + fontSize: 12, ), ), ), diff --git a/lib/pages/settings/settings_view.dart b/lib/pages/settings/settings_view.dart index e93936f0..19d57f0c 100644 --- a/lib/pages/settings/settings_view.dart +++ b/lib/pages/settings/settings_view.dart @@ -66,14 +66,11 @@ class SettingsView extends StatelessWidget { borderRadius: BorderRadius.circular( Avatar.defaultSize * 2.5), ), - child: Hero( - tag: 'profilesettings', - child: Avatar( - mxContent: profile?.avatarUrl, - name: displayname, - size: Avatar.defaultSize * 2.5, - fontSize: 18 * 2.5, - ), + child: Avatar( + mxContent: profile?.avatarUrl, + name: displayname, + size: Avatar.defaultSize * 2.5, + fontSize: 18 * 2.5, ), ), if (profile != null)