forked from Nexus/nexus
make room dialog scrollable
This commit is contained in:
parent
bd185824f9
commit
bf31f5510a
1 changed files with 42 additions and 38 deletions
|
|
@ -40,6 +40,7 @@ class RoomAppbar extends ConsumerWidget implements PreferredSizeWidget {
|
||||||
constraints: .loose(.fromWidth(400)),
|
constraints: .loose(.fromWidth(400)),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: .all(24),
|
padding: .all(24),
|
||||||
|
child: SingleChildScrollView(
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: .min,
|
mainAxisSize: .min,
|
||||||
crossAxisAlignment: .start,
|
crossAxisAlignment: .start,
|
||||||
|
|
@ -66,7 +67,9 @@ class RoomAppbar extends ConsumerWidget implements PreferredSizeWidget {
|
||||||
room.metadata?.name ?? "Unnamed Room",
|
room.metadata?.name ?? "Unnamed Room",
|
||||||
overflow: .ellipsis,
|
overflow: .ellipsis,
|
||||||
maxLines: 3,
|
maxLines: 3,
|
||||||
style: Theme.of(context).textTheme.headlineSmall,
|
style: Theme.of(
|
||||||
|
context,
|
||||||
|
).textTheme.headlineSmall,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
@ -86,6 +89,7 @@ class RoomAppbar extends ConsumerWidget implements PreferredSizeWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
leading: isDesktop
|
leading: isDesktop
|
||||||
? room == null
|
? room == null
|
||||||
? null
|
? null
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue