Update sdk
This commit is contained in:
parent
15540a9a19
commit
2ffbd751e1
13 changed files with 43 additions and 34 deletions
|
|
@ -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"],
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
),
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue