feat: add option to hide bottom navigation bar labels

This commit is contained in:
edde746
2026-03-05 15:05:48 +01:00
parent 0269825179
commit db57fa73ce
23 changed files with 141 additions and 33 deletions
+16
View File
@@ -73,6 +73,7 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
static const _kAlwaysKeepSidebarOpen = 'always_keep_sidebar_open';
static const _kShowUnwatchedCount = 'show_unwatched_count';
static const _kHideSpoilers = 'hide_spoilers';
static const _kShowNavBarLabels = 'show_nav_bar_labels';
static const _kRequireProfileSelectionOnOpen = 'require_profile_selection_on_open';
static const _kConfirmExitOnBack = 'confirm_exit_on_back';
static const _kPlayerBackend = 'player_backend';
@@ -380,6 +381,21 @@ class _SettingsScreenState extends State<SettingsScreen> with FocusableTab {
);
},
),
if (!PlatformDetector.shouldUseSideNavigation(context))
Consumer<SettingsProvider>(
builder: (context, settingsProvider, child) {
return SwitchListTile(
focusNode: _focusTracker.get(_kShowNavBarLabels),
secondary: const AppIcon(Symbols.label_rounded, fill: 1),
title: Text(t.settings.showNavBarLabels),
subtitle: Text(t.settings.showNavBarLabelsDescription),
value: settingsProvider.showNavBarLabels,
onChanged: (value) async {
await settingsProvider.setShowNavBarLabels(value);
},
);
},
),
Consumer<SettingsProvider>(
builder: (context, settingsProvider, child) {
return SwitchListTile(