Update sdk

This commit is contained in:
Christian Pauly 2020-04-28 14:11:56 +02:00
commit 2ffbd751e1
13 changed files with 43 additions and 34 deletions

View file

@ -159,7 +159,9 @@ class _InvitationSelectionState extends State<InvitationSelection> {
itemCount: foundProfiles.length,
itemBuilder: (BuildContext context, int i) => ListTile(
leading: Avatar(
MxContent(foundProfiles[i]["avatar_url"] ?? ""),
foundProfiles[i]["avatar_url"] == null
? null
: Uri.parse(foundProfiles[i]["avatar_url"]),
foundProfiles[i]["display_name"] ??
foundProfiles[i]["user_id"],
),

View file

@ -158,7 +158,9 @@ class _NewPrivateChatState extends State<_NewPrivateChat> {
? Padding(
padding: const EdgeInsets.all(8.0),
child: Avatar(
MxContent(foundProfile["avatar_url"] ?? ""),
foundProfile["avatar_url"] == null
? null
: Uri.parse(foundProfile["avatar_url"]),
foundProfile["display_name"] ??
foundProfile["user_id"],
size: 12,
@ -186,7 +188,9 @@ class _NewPrivateChatState extends State<_NewPrivateChat> {
});
},
leading: Avatar(
MxContent(foundProfile["avatar_url"] ?? ""),
foundProfile["avatar_url"] == null
? null
: Uri.parse(foundProfile["avatar_url"]),
foundProfile["display_name"] ?? foundProfile["user_id"],
//size: 24,
),

View file

@ -152,7 +152,7 @@ class _SettingsState extends State<Settings> {
color: Theme.of(context).appBarTheme.textTheme.title.color),
),
background: ContentBanner(
profile?.avatarUrl ?? MxContent(""),
profile?.avatarUrl,
height: 300,
defaultIcon: Icons.account_circle,
loading: profile == null,