mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-19 10:39:26 +01:00
chore: Follow up navigationrail fixes
This commit is contained in:
parent
b1d06c065c
commit
6613f6b10c
@ -106,8 +106,7 @@ class ChatListView extends StatelessWidget {
|
|||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
if (FluffyThemes.isColumnMode(context) &&
|
if (FluffyThemes.isColumnMode(context) &&
|
||||||
FluffyThemes.getDisplayNavigationRail(context) &&
|
FluffyThemes.getDisplayNavigationRail(context)) ...[
|
||||||
controller.waitForFirstSync) ...[
|
|
||||||
Builder(builder: (context) {
|
Builder(builder: (context) {
|
||||||
final allSpaces = client.rooms.where((room) => room.isSpace);
|
final allSpaces = client.rooms.where((room) => room.isSpace);
|
||||||
final rootSpaces = allSpaces
|
final rootSpaces = allSpaces
|
||||||
@ -124,9 +123,7 @@ class ChatListView extends StatelessWidget {
|
|||||||
width: 64,
|
width: 64,
|
||||||
child: ListView.builder(
|
child: ListView.builder(
|
||||||
scrollDirection: Axis.vertical,
|
scrollDirection: Axis.vertical,
|
||||||
itemCount: rootSpaces.length +
|
itemCount: rootSpaces.length + destinations.length,
|
||||||
2 +
|
|
||||||
(AppConfig.separateChatTypes ? 1 : 0),
|
|
||||||
itemBuilder: (context, i) {
|
itemBuilder: (context, i) {
|
||||||
if (i < destinations.length) {
|
if (i < destinations.length) {
|
||||||
final isSelected = i == controller.selectedIndex;
|
final isSelected = i == controller.selectedIndex;
|
||||||
|
Loading…
Reference in New Issue
Block a user