Skip to content

[material_ui] Migrate RangeSlider API doc snippets to {@example} (batch 14) - #13725

Merged
auto-submit[bot] merged 3 commits into
flutter:mainfrom
dkwingsmt:snippet_material_range_slider
Nov 24, 2026
Merged

auto-submit[bot] merged 3 commits into
flutter:mainfrom
dkwingsmt:snippet_material_range_slider

Conversation

@dkwingsmt

Copy link
Copy Markdown
Contributor

This PR addresses batch 14 of the migration detailed in flutter/flutter#188530 (comment).

Pre-Review Checklist

If you need help, consider asking for advice on the #hackers-new channel on Discord.

Note: The Flutter team is currently trialing the use of Gemini Code Assist for GitHub. Comments from the gemini-code-assist bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed.

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Nov 19, 2026
@github-actions github-actions Bot added p: material_ui triage-design Should be looked at in design triage labels Nov 19, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

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 extracts inline code examples from packages/material_ui/lib/src/range_slider.dart into separate snippet files under packages/material_ui/example/lib/range_slider/ and references them using {@example} tags. It also adds corresponding widget tests for each snippet under packages/material_ui/example/test/range_slider/ and removes the related TODO comments. There are no review comments, and I have no feedback to provide.

@dkwingsmt
dkwingsmt marked this pull request as draft November 19, 2026 20:20
@dkwingsmt dkwingsmt added override: no versioning needed Override the check requiring version bumps for most changes override: no changelog needed Override the check requiring CHANGELOG updates for most changes labels Nov 23, 2026
@dkwingsmt
dkwingsmt marked this pull request as ready for review November 23, 2026 21:18
@dkwingsmt
dkwingsmt requested a review from QuncCccccc November 23, 2026 21:18

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

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 extracts inline code snippets from the RangeSlider documentation in range_slider.dart into separate example files under the example directory and adds corresponding widget tests. The documentation is updated to reference these external files using the {@example} directive. Feedback points out that the paths in the {@example} directives should not start with a leading slash, as this can cause documentation generation tools to fail.

/// },
/// )
/// ```
/// {@example /example/lib/range_slider/range_slider.on_changed.snippet.0.dart#body indent=strip}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The path in the {@example} directive should be relative to the package root and should not start with a leading slash /. A leading slash can cause the documentation generation tool to fail to resolve the file path correctly.

  /// {@example example/lib/range_slider/range_slider.on_changed.snippet.0.dart#body indent=strip}

/// },
/// )
/// ```
/// {@example /example/lib/range_slider/range_slider.on_change_start.snippet.0.dart#body indent=strip}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The path in the {@example} directive should be relative to the package root and should not start with a leading slash /. A leading slash can cause the documentation generation tool to fail to resolve the file path correctly.

  /// {@example example/lib/range_slider/range_slider.on_change_start.snippet.0.dart#body indent=strip}

/// },
/// )
/// ```
/// {@example /example/lib/range_slider/range_slider.on_change_end.snippet.0.dart#body indent=strip}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The path in the {@example} directive should be relative to the package root and should not start with a leading slash /. A leading slash can cause the documentation generation tool to fail to resolve the file path correctly.

  /// {@example example/lib/range_slider/range_slider.on_change_end.snippet.0.dart#body indent=strip}

/// }
/// )
/// ```
/// {@example /example/lib/range_slider/range_slider.semantic_formatter_callback.snippet.0.dart#body indent=strip}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

high

The path in the {@example} directive should be relative to the package root and should not start with a leading slash /. A leading slash can cause the documentation generation tool to fail to resolve the file path correctly.

  /// {@example example/lib/range_slider/range_slider.semantic_formatter_callback.snippet.0.dart#body indent=strip}

@QuncCccccc QuncCccccc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@dkwingsmt dkwingsmt added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 24, 2026
@auto-submit
auto-submit Bot merged commit 580f1be into flutter:main Nov 24, 2026
13 checks passed
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-flutter__flutter that referenced this pull request Nov 25, 2026
…er#197386)

flutter/packages@f455dfa...105a874

2026-11-25 [email protected] [material_ui]
Fix doc errors in the `OutlinedButton` and `TextButton`
(flutter/packages#13739)
2026-11-25 [email protected] [tool] Exempt Kotlin DSL Gradle files like
their Groovy equivalents (flutter/packages#13780)
2026-11-24 [email protected] [video_player] Convert remaining code
to Swift (flutter/packages#13643)
2026-11-24 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump org.mockito.kotlin:mockito-kotlin from 6.1.0 to 6.3.0
in /packages/cross_file/cross_file_android/android
(flutter/packages#12933)
2026-11-24 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump org.json:json from 20260522 to 20260814 in
/packages/in_app_purchase/in_app_purchase/example/android/app
(flutter/packages#12569)
2026-11-24 49699333+dependabot[bot]@users.noreply.github.com Bump the
all-github-actions group across 1 directory with 2 updates
(flutter/packages#12289)
2026-11-24 49699333+dependabot[bot]@users.noreply.github.com
[dependabot]: Bump the test-dependencies group across 9 directories with
2 updates (flutter/packages#13760)
2026-11-24 [email protected] [material_ui] Migrate
RangeSlider API doc snippets to {@example} (batch 14)
(flutter/packages#13725)
2026-11-24 [email protected]
[in_app_purchase_storekit] Fix test failure on Xcode 27.2
(flutter/packages#13778)
2026-11-24 [email protected] Roll Flutter from
98744d3 to b75c5b3 (24 revisions) (flutter/packages#13777)

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
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 CICD Run CI/CD override: no changelog needed Override the check requiring CHANGELOG updates for most changes override: no versioning needed Override the check requiring version bumps for most changes p: material_ui triage-design Should be looked at in design triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants