Skip to content

Conversation

@nathannewyen
Copy link

Description

The docstring says "Typically a [SliverList]" but the class example uses ListView.

SliverList is used inside CustomScrollView, not as a direct child of Drawer.

Related Issue

Fixes #100268

The example in the class uses ListView, not SliverList.
SliverList is used inside CustomScrollView, not as a direct child.

Fixes flutter#100268
@github-actions github-actions bot added framework flutter/packages/flutter repository. See also f: labels. f: material design flutter/packages/flutter/material repository. labels Dec 27, 2025
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

f: material design flutter/packages/flutter/material repository. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Documentation] Drawer.child has inconsistencies in docstring and api.flutter.dev

1 participant