New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example: make better use of YaruWindowTitleBar #521
Conversation
Yes it has an AppBar instead of a yaru bar https://github.com/ubuntu/yaru_widgets.dart/blob/main/example/lib/pages/navigation_page.dart#L26 |
Damn, the idea of using a divided title bar with master-detail and shared one navi-rail doesn't work then. 🤔 |
Well we had a version of the layouts which needed those titlebuilders for the appbar in the scaffolds. Pro was that we did not use so many scaffolds then. But if we would do this again we would need one more builder for the appbar title because we are using the titlebuilders for the master tiles and navi items now |
I didn't understand this 🤔 could you elaborate ? |
Proposal: PageItem(
title: 'YaruNavigationPage',
iconBuilder: (context, selected) => selected
? const Icon(YaruIcons.compass_filled)
: const Icon(YaruIcons.compass),
pageBuilder: (_) => const NavigationPage(),
supportedLayouts: {YaruMasterDetailPage}, // <=== added (defaults to {YaruMasterDetailPage,YaruNavigationPage})
), |
ahhhh! :) Yeah maybe this is a good idea. Eventually we could add more layouts in the future with fixed appbars which require title widgets plus nullable leading widgets |
Yaru wizard would be cool. :) I've learned with the installer that wizards can have awfully complicated conditional navigation rules, though. |
Supercedes #513