chore: Follow up remove hero animation
This commit is contained in:
parent
6dd44a9f61
commit
da6ac90cf2
2 changed files with 11 additions and 17 deletions
|
|
@ -213,15 +213,12 @@ class ClientChooserButton extends StatelessWidget {
|
||||||
child: Material(
|
child: Material(
|
||||||
color: Colors.transparent,
|
color: Colors.transparent,
|
||||||
borderRadius: BorderRadius.circular(99),
|
borderRadius: BorderRadius.circular(99),
|
||||||
child: Hero(
|
child: Avatar(
|
||||||
tag: 'profilesettings',
|
mxContent: snapshot.data?.avatarUrl,
|
||||||
child: Avatar(
|
name: snapshot.data?.displayName ??
|
||||||
mxContent: snapshot.data?.avatarUrl,
|
matrix.client.userID!.localpart,
|
||||||
name: snapshot.data?.displayName ??
|
size: 28,
|
||||||
matrix.client.userID!.localpart,
|
fontSize: 12,
|
||||||
size: 28,
|
|
||||||
fontSize: 12,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -66,14 +66,11 @@ class SettingsView extends StatelessWidget {
|
||||||
borderRadius: BorderRadius.circular(
|
borderRadius: BorderRadius.circular(
|
||||||
Avatar.defaultSize * 2.5),
|
Avatar.defaultSize * 2.5),
|
||||||
),
|
),
|
||||||
child: Hero(
|
child: Avatar(
|
||||||
tag: 'profilesettings',
|
mxContent: profile?.avatarUrl,
|
||||||
child: Avatar(
|
name: displayname,
|
||||||
mxContent: profile?.avatarUrl,
|
size: Avatar.defaultSize * 2.5,
|
||||||
name: displayname,
|
fontSize: 18 * 2.5,
|
||||||
size: Avatar.defaultSize * 2.5,
|
|
||||||
fontSize: 18 * 2.5,
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
if (profile != null)
|
if (profile != null)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue