[Web] Fix missing MatrixState in context because of wrong order in widget tree
Took 21 minutes
This commit is contained in:
parent
a512dc6dbd
commit
a980217779
10 changed files with 113 additions and 89 deletions
|
|
@ -8,6 +8,7 @@ import 'package:fluffychat/i18n/i18n.dart';
|
|||
import 'package:fluffychat/utils/app_route.dart';
|
||||
import 'package:fluffychat/views/chat_list.dart';
|
||||
import 'package:fluffychat/views/sign_up.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:image_picker/image_picker.dart';
|
||||
import 'package:toast/toast.dart';
|
||||
|
|
@ -106,7 +107,7 @@ class _SettingsState extends State<Settings> {
|
|||
profile?.avatarUrl ?? MxContent(""),
|
||||
defaultIcon: Icons.account_circle,
|
||||
loading: profile == null,
|
||||
onEdit: () => setAvatarAction(context),
|
||||
onEdit: kIsWeb ? null : () => setAvatarAction(context),
|
||||
),
|
||||
ListTile(
|
||||
leading: Icon(Icons.edit),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue