You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Expose alwaysShowMiddle as part of public API in CupertinoSliverNavigationBar #113542
Currently, providing largeTitle and omitting middle to CupertinoSliverNavigationBar results in the same widget being used for
large title in expanded state and "middle title" in collapsed state, thus preventing a use of a different widget for collapsed state title (or just changing text style of the title for example). If we provide middle property as well (to be used as a title in collapsed state), both largeTitle and middle are visible when the nav bar is expanded (which is according to docs an expected behaviour). But, if we do not want such behaviour, it would be nice to have alwaysShowMiddle exposed with default value being widget.middle != null.
Proposal
Add alwaysShowMiddle as a field to CupertinoSliverNavigationBar and pass it to _LargeTitleNavigationBarSliverDelegate with default value of widget.middle != null.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
campovski commentedon Oct 21, 2022
@HansMuller The PR is ready for code review.
github-actions commentedon Nov 9, 2022
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.