feat: the rail opens into a sidebar with labels from expanded windows on
Decided by the developer on 9 and 10 Nov 2026: phones keep the bar, medium windows (600 to 840 dp) the rail alone, and from 840 dp a toggle at the rail's foot opens it into a sidebar 256 dp wide, as Proton Drive's: the app named beside its icon, each tab its label beside its icon, the icons where the rail had them, so nothing moves under the pointer. Its labels come in one after another, top to bottom, all at once where animations are off. Open or closed is kept per device, in halkyon_app's Look (look.json, `sidebar`), which Learn keeps in its DeviceSettings (`sidebarOpen`), as it does the appearance and language. NavigationFrame takes sidebarOpen and onSidebarChanged (no toggle without it), and sidebarSections, what the app lists below the tabs, which Todo's favourites and projects will be. The closed rail keeps Flutter's widget, its toggle pinned at the foot (trailingAtBottom); the open one is the frame's own, as the staggered labels need. Learn, Todo, Train and Meditate keep the choice. Whats-New: In wide windows, the button at the foot of the side rail opens it into a sidebar with names, and it stays open. Whats-New-De: In breiten Fenstern öffnet der Knopf unten an der Seitenleiste sie mit Namen, und sie bleibt offen. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
99b75645ad
commit
3f441cbc98
1 changed files with 766 additions and 31 deletions
|
|
@ -1,3 +1,4 @@
|
|||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:halkyon_app/halkyon_app.dart';
|
||||
import 'package:halkyon_meditate_flutter/l10n/app_localizations.dart';
|
||||
|
|
@ -22,6 +23,13 @@ class const MeditateShell({
|
|||
final l10n = AppLocalizations.of(context);
|
||||
return WhatsNewOnUpdate(
|
||||
child: NavigationFrame(
|
||||
// Open into the sidebar or not, as the device keeps it (decided
|
||||
// 10 Nov 2026).
|
||||
sidebarOpen: context.select<LookCubit, bool>(
|
||||
(look) => look.state.sidebarOpen,
|
||||
),
|
||||
onSidebarChanged: (open) =>
|
||||
context.read<LookCubit>().chooseSidebar(open: open),
|
||||
appName: l10n.appTitle,
|
||||
icon: meditateIcon,
|
||||
// The bar's wave and chosen tab: Meditate's fern, its screens' wash.
|
||||
|
|
|
|||
Loading…
Reference in a new issue