refactor: Magic numbers

This commit is contained in:
Krille Fear 2021-10-26 18:47:05 +02:00
commit f114d545f7
8 changed files with 63 additions and 54 deletions

View file

@ -294,11 +294,13 @@ class ChatDetailsController extends State<ChatDetails> {
}
}
static const fixedWidth = 360.0;
@override
Widget build(BuildContext context) {
members ??= Matrix.of(context).client.getRoomById(roomId).getParticipants();
return SizedBox(
width: 360.0,
width: fixedWidth,
child: ChatDetailsView(this),
);
}