Skip to content

Add SliverGrid.builder constructor#113116

Merged
auto-submit[bot] merged 1 commit intoflutter:masterfrom
gspencergoog:sliver_grid_builder
Oct 7, 2022
Merged

Add SliverGrid.builder constructor#113116
auto-submit[bot] merged 1 commit intoflutter:masterfrom
gspencergoog:sliver_grid_builder

Conversation

@gspencergoog
Copy link
Contributor

@gspencergoog gspencergoog commented Oct 7, 2022

Description

To bring it more in line with GridView, add a convenience constructor SliverGrid.builder to SliverGrid that makes for a little less boilerplate, and to avoid having to use the scary delegate class.

Related Issues

Tests

  • Added a test that verifies that the builder is called and creates what was expected.

@gspencergoog gspencergoog requested a review from Piinks October 7, 2022 18:24
@flutter-dashboard flutter-dashboard bot added f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels. labels Oct 7, 2022
/// [SliverChildBuilderDelegate.addRepaintBoundaries] property. Both must not
/// be null.
/// [SliverChildBuilderDelegate.addRepaintBoundaries] property. The
/// `addSemanticIndexes` argument corresponds to the
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just updated this doc because it was missing addSemanticIndexes.

Copy link
Contributor

@Piinks Piinks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm-hamster

@gspencergoog gspencergoog added the autosubmit Merge PR when tree becomes green via auto submit App label Oct 7, 2022
@auto-submit auto-submit bot merged commit 41a13a3 into flutter:master Oct 7, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Oct 8, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/plugins that referenced this pull request Oct 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App f: scrolling Viewports, list views, slivers, etc. framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants