fix(teams): the invitation-accept screen scrolls itself - #164
Conversation
It was the one starter screen in the app shell with no scroll of its own, so a host whose content box does not scroll handed it a bounded height and the card overflowed a short viewport with nothing to drag. It now sits in its own SingleChildScrollView(primary: false), as the MSPageScaffold screens do. contentClassName's doc now names the stacked-route hazard: the default scrolls the shell's nested Navigator, which breaks a page left under a .stacked() route on its second hidden rebuild, so an app that stacks routes should set 'flex-1 min-h-0'. The default is unchanged. Refs #160
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Note Kodizm (AI-generated). May contain mistakes; verify before acting. The change looks correct: I found no defects. The view now wraps its state-rendered content in I read the view diff. I did not open the CHANGELOG, the theme doc comment or the test diff. TestsA new test reproduces the overflow at 390x300, which the PR says was 76px before the fix. I did not read it. CI
|
…-scrolls # Conflicts: # CHANGELOG.md
|
Note Kodizm (AI-generated). May contain mistakes; verify before acting. Incremental review of the commits since my last pass (9c7c456 → f668240). This adds a second, related fix: settings/profile/team-create sub-pages resetting their shared controller in The additional commits look correct: I found no defects.
The TestsNew widget tests push every affected sub-page over its parent (hub or team settings) with the controller left in a dirty state, and assert CI
|
What
SingleChildScrollView(primary: false), asMSPageScaffoldscreens do.MagicStarterLayoutTheme.contentClassName's doc names the stacked-route hazard and recommends'flex-1 min-h-0'for any app that stacks routes under this layout. The default is unchanged.Why
This was the one starter screen in the app shell with no scroll of its own. A host whose content box does not scroll (the setting #160 recommends) handed it a bounded height, and on a short viewport the card overflowed with nothing to drag. The default content box scrolls the shell's nested Navigator, which breaks a page left under a
.stacked()route on its second hidden rebuild (flutter/flutter#193247). Changing the default would move layout for every existing host, so this documents it instead. Refs #160.Testing
flutter analyzeclean, 1540 tests green,dart format --set-exit-if-changed .clean.MSPageScaffold.