-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: scrollingViewports, list views, slivers, etc.Viewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.good first issueRelatively approachable for first-time contributorsRelatively approachable for first-time contributorsr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team
Description
Use case
SliverList.builder/SliverGrid.builder/SliverFixedExtentList.builder are convenience constructors for SliverList/SliverGrid/SliverFixedExtentList with a SliverChildBuilderDelegate item delegate.
The SliverChildBuilderDelegate accepts a semanticIndexOffset argument:
SliverGrid(
gridDelegate: _gridDelegate,
delegate: SliverChildBuilderDelegate(
(BuildContext context, int index) {
return const Text('...');
},
childCount: 2,
semanticIndexOffset: 2,
),
),However, SliverList.builder, SliverGrid.builder, and SliverFixedExtentList.builder do not accept a semanticIndexOffset argument. If you need to provide this argument, you are forced to use the delegate pattern instead of the convenience constructor.
Proposal
- Add a
semanticIndexOffsetargument toSliverList.builder - Add a
semanticIndexOffsetargument toSliverGrid.builder - Add a
semanticIndexOffsetargument toSliverFixedExtentList.builder
For example:
SliverGrid.builder(
gridDelegate: _gridDelegate,
semanticIndexOffset: 2,
itemCount: 2,
itemBuilder: (BuildContext context, int index) {
return const Text('...');
},
),Metadata
Metadata
Assignees
Labels
P3Issues that are less important to the Flutter projectIssues that are less important to the Flutter projecta: accessibilityAccessibility, e.g. VoiceOver or TalkBack. (aka a11y)Accessibility, e.g. VoiceOver or TalkBack. (aka a11y)c: new featureNothing broken; request for a new capabilityNothing broken; request for a new capabilityc: proposalA detailed proposal for a change to FlutterA detailed proposal for a change to Flutterf: scrollingViewports, list views, slivers, etc.Viewports, list views, slivers, etc.frameworkflutter/packages/flutter repository. See also f: labels.flutter/packages/flutter repository. See also f: labels.good first issueRelatively approachable for first-time contributorsRelatively approachable for first-time contributorsr: fixedIssue is closed as already fixed in a newer versionIssue is closed as already fixed in a newer versionteam-frameworkOwned by Framework teamOwned by Framework teamtriaged-frameworkTriaged by Framework teamTriaged by Framework team