fix: Stuff

This commit is contained in:
Christian Pauly 2021-09-19 12:44:00 +02:00
parent 7f6e37adf2
commit 4e8111a150

View File

@ -821,7 +821,9 @@ class _ChatAccountPicker extends StatelessWidget {
controller.matrix ??= Matrix.of(context);
final clients = controller.matrix.currentBundle;
clients.removeWhere((c) => c.getRoomById(controller.roomId) == null);
return FutureBuilder<Profile>(
return Padding(
padding: const EdgeInsets.all(8.0),
child: FutureBuilder<Profile>(
future: controller.matrix.client.ownProfile,
builder: (context, snapshot) => PopupMenuButton<String>(
onSelected: _popupMenuButtonSelected,
@ -836,7 +838,8 @@ class _ChatAccountPicker extends StatelessWidget {
snapshot.data?.displayName ?? client.userID.localpart,
size: 20,
),
title: Text(snapshot.data?.displayName ?? client.userID),
title:
Text(snapshot.data?.displayName ?? client.userID),
contentPadding: EdgeInsets.all(0),
),
),
@ -849,6 +852,7 @@ class _ChatAccountPicker extends StatelessWidget {
size: 20,
),
),
),
);
}
}