Uh oh!
There was an error while loading. Please reload this page.
[flutter_adaptive_scaffold] Change selectedIndex on standardNavigationRail to allow null value. - #3088
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
joshryandavis
commented
Jan 25, 2023
I've added a test for the change. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
* main: (479 commits) removes raw ArrayLists (flutter#3101) Roll Flutter from c9affdb to 27f8ebd (15 revisions) (flutter#3098) [ci] Fix the new LUCI iOS build-all tasks (flutter#3099) [pigeon] [ObjC] Removes unused GetNullableObject function (flutter#3100) [pigeon] Swift host error handling (flutter#3084) Roll Flutter from a815ee6 to c9affdb (23 revisions) (flutter#3093) [ci] Enable min SDK version checks (flutter#3095) [pigeon] Fix C++ config handling (flutter#3094) [ci] Add LUCI version of iOS build-all (flutter#3096) [pigeon] Adds SwiftFunction annotation (flutter#2304) [flutter_adaptive_scaffold] Change `selectedIndex` on `standardNavigationRail` to allow null value. (flutter#3088) [pigeon] requires analyzer 5.2.0 (flutter#3090) Roll Flutter from c35efda to a815ee6 (22 revisions) (flutter#3089) [ci] Update legacy Flutter version tests (flutter#3087) Roll Flutter (stable) from 135454a to b06b8b2 (2551 revisions) (flutter#3086) [flutter_adaptive_scaffold] Fix leading and trailing Navigation Rail Widgets (flutter#3080) Roll Flutter from bd7bee0 to c35efda (24 revisions) (flutter#3085) [pigeon] Minor C++ output adjustments (flutter#3083) [pigeon] Updates writeScoped and addScoped to disallow symbol-less use. (flutter#3081) Roll Flutter from f33e8d3 to bd7bee0 (5 revisions) (flutter#3082) ...
…tionRail` to allow null value. (flutter#3088) * changed selectedIndex on standardNavigationRail to allow null value * Update CHANGELOG.md * increase version number * Update CHANGELOG.md * Update CHANGELOG.md * change index types from int to int? * add test for slectedIndex can be set to null * Update CHANGELOG.md * index types set to int? and ensure BottomNavigationRail currentIndex isn't null * Update packages/flutter_adaptive_scaffold/CHANGELOG.md Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com> * Update packages/flutter_adaptive_scaffold/lib/src/adaptive_scaffold.dart Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com> * Update packages/flutter_adaptive_scaffold/CHANGELOG.md Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com> Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
…tionRail` to allow null value. (flutter#3088) * changed selectedIndex on standardNavigationRail to allow null value * Update CHANGELOG.md * increase version number * Update CHANGELOG.md * Update CHANGELOG.md * change index types from int to int? * add test for slectedIndex can be set to null * Update CHANGELOG.md * index types set to int? and ensure BottomNavigationRail currentIndex isn't null * Update packages/flutter_adaptive_scaffold/CHANGELOG.md Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com> * Update packages/flutter_adaptive_scaffold/lib/src/adaptive_scaffold.dart Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com> * Update packages/flutter_adaptive_scaffold/CHANGELOG.md Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com> Co-authored-by: Greg Spencer <gspencergoog@users.noreply.github.com>
Changed
selectedIndexonstandardNavigationRailto allow a null value to be set so that the NavRail can show nothing as being selected. TheselectedIndexvalue is passed toNavigationRailwhich already permits null.Fixes: #118888
Pre-launch Checklist
dart format.)[shared_preferences]pubspec.yamlwith an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.mdto add a description of the change, following repository CHANGELOG style.///).If you need help, consider asking for advice on the #hackers-new channel on Discord.