chore: replace chat button in navigation rail with home button, replace chat suggestions in empty settings page with empty page (#2454)
This commit is contained in:
parent
3abfffd227
commit
43d6b992f7
2 changed files with 14 additions and 7 deletions
|
|
@ -42,6 +42,7 @@ import 'package:fluffychat/pangea/spaces/utils/join_with_alias.dart';
|
|||
import 'package:fluffychat/pangea/spaces/utils/join_with_link.dart';
|
||||
import 'package:fluffychat/pangea/subscription/pages/settings_subscription.dart';
|
||||
import 'package:fluffychat/pangea/user/pages/find_partner.dart';
|
||||
import 'package:fluffychat/widgets/layouts/empty_page.dart';
|
||||
import 'package:fluffychat/widgets/layouts/two_column_layout.dart';
|
||||
import 'package:fluffychat/widgets/log_view.dart';
|
||||
import 'package:fluffychat/widgets/matrix.dart';
|
||||
|
|
@ -320,10 +321,7 @@ abstract class AppRoutes {
|
|||
context,
|
||||
state,
|
||||
FluffyThemes.isColumnMode(context)
|
||||
// #Pangea
|
||||
// ? const EmptyPage()
|
||||
? const SuggestionsPage()
|
||||
// Pangea#
|
||||
? const EmptyPage()
|
||||
: const Settings(),
|
||||
),
|
||||
routes: [
|
||||
|
|
|
|||
|
|
@ -70,13 +70,22 @@ class SpacesNavigationRail extends StatelessWidget {
|
|||
onTap: onGoToChats,
|
||||
icon: const Padding(
|
||||
padding: EdgeInsets.all(10.0),
|
||||
child: Icon(Icons.forum_outlined),
|
||||
// #Pangea
|
||||
// child: Icon(Icons.forum_outlined),
|
||||
child: Icon(Icons.home_outlined),
|
||||
// Pangea#
|
||||
),
|
||||
selectedIcon: const Padding(
|
||||
padding: EdgeInsets.all(10.0),
|
||||
child: Icon(Icons.forum),
|
||||
// #Pangea
|
||||
// child: Icon(Icons.forum),
|
||||
child: Icon(Icons.home),
|
||||
// Pangea#
|
||||
),
|
||||
toolTip: L10n.of(context).chats,
|
||||
// #Pangea
|
||||
// toolTip: L10n.of(context).chats,
|
||||
toolTip: L10n.of(context).home,
|
||||
// Pangea#
|
||||
unreadBadgeFilter: (room) => true,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue