-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Fix Drawer.child docstring to say ListView instead of SliverList #180326
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request updates the docstring for the Drawer.child property, correcting the typical child widget from SliverList to ListView. This change aligns the documentation with common usage patterns, the widget's own class-level documentation, and the provided example code. The fix is accurate and improves the clarity of the documentation for developers.
Piinks
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
MitchellGoodwin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM as well!
|
autosubmit label was removed for flutter/flutter/180326, because The base commit of the PR is older than 7 days and can not be merged. Please merge the latest changes from the main into this branch and resubmit the PR. |
The example in the class uses ListView, not SliverList. SliverList is used inside CustomScrollView, not as a direct child. Fixes flutter#100268
fc4e360 to
5541842
Compare
Description
The docstring says "Typically a [SliverList]" but the class example uses
ListView.SliverListis used insideCustomScrollView, not as a direct child ofDrawer.Related Issue
Fixes #100268