add slight padding above browse space fab
This commit is contained in:
parent
ab3eda0beb
commit
659e76b8f8
1 changed files with 68 additions and 62 deletions
|
|
@ -284,6 +284,8 @@ class const RoomsPane({super.key}) extends ConsumerWidget {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
child: Padding(
|
||||||
|
padding: const .only(top: 4),
|
||||||
child: NavigationRailM3E(
|
child: NavigationRailM3E(
|
||||||
fab: selectedSpace.room == null
|
fab: selectedSpace.room == null
|
||||||
? null
|
? null
|
||||||
|
|
@ -324,12 +326,14 @@ class const RoomsPane({super.key}) extends ConsumerWidget {
|
||||||
if (subSpace.room.metadata?.avatar != null)
|
if (subSpace.room.metadata?.avatar != null)
|
||||||
AvatarOrHash(
|
AvatarOrHash(
|
||||||
subSpace.room.metadata?.avatar,
|
subSpace.room.metadata?.avatar,
|
||||||
subSpace.room.metadata?.name ?? "Unnamed Room",
|
subSpace.room.metadata?.name ??
|
||||||
|
"Unnamed Room",
|
||||||
dimension: 16,
|
dimension: 16,
|
||||||
),
|
),
|
||||||
Flexible(
|
Flexible(
|
||||||
child: Text(
|
child: Text(
|
||||||
subSpace.room.metadata?.name ?? "Unnamed Space",
|
subSpace.room.metadata?.name ??
|
||||||
|
"Unnamed Space",
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
overflow: .ellipsis,
|
overflow: .ellipsis,
|
||||||
),
|
),
|
||||||
|
|
@ -346,7 +350,8 @@ class const RoomsPane({super.key}) extends ConsumerWidget {
|
||||||
onDestinationSelected: (value) {
|
onDestinationSelected: (value) {
|
||||||
ref
|
ref
|
||||||
.read(
|
.read(
|
||||||
KeyController.provider(KeyController.roomKey).notifier,
|
KeyController.provider(KeyController.roomKey)
|
||||||
|
.notifier,
|
||||||
)
|
)
|
||||||
.set(selectedSpace.allChildRooms[value].metadata?.id);
|
.set(selectedSpace.allChildRooms[value].metadata?.id);
|
||||||
if (Navigator.of(context).canPop()) {
|
if (Navigator.of(context).canPop()) {
|
||||||
|
|
@ -354,6 +359,7 @@ class const RoomsPane({super.key}) extends ConsumerWidget {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue