Skip to content
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

material_3_demo: NavigationRail trailing has expaneded #1569

Open
fredgrott opened this issue Jan 14, 2023 · 1 comment
Open

material_3_demo: NavigationRail trailing has expaneded #1569

fredgrott opened this issue Jan 14, 2023 · 1 comment
Assignees
Labels

Comments

@fredgrott
Copy link

The NavigationRail trailing has an Expanded Widget as parent however that will cause problems when window changes to small sizes. Would it not be better to use Flexible? Such as:

navigationRail: NavigationRail( extended: showLargeSizeLayout, trailing: Flexible( fit: FlexFit.loose, child: Padding( padding: const EdgeInsets.only(bottom: 20), child: showLargeSizeLayout ? _expandedTrailingActions() : _trailingActions(), ), ), destinations: navRailDestinations, selectedIndex: screenIndex, // // ignore: prefer-extracting-callbacks onDestinationSelected: (index) { setState(() { screenIndex = index; handleScreenChanged(screenIndex); }); }, ),

Fixes the problem as we would not use a scroillview here as we do not want the scrollbar appearing on the NavigationRail content.

I only found this as I was exploring this better approach to hand writing adaptive scaffolds rather than the flutter adaptive scaffold as I can get more design power in custom creating the transition animation and other animations.

Very good work thus far, peace and happy designing.

@domesticmouse
Copy link
Contributor

PTAL @QuncCccccc @guidezpl

@guidezpl guidezpl removed their assignment Jun 28, 2023
@guidezpl guidezpl changed the title material_3_demo: NavigationRail trailing has expaneded material_3_demo: NavigationRail trailing has expaneded Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants