Skip to content

Implement on clauses - #152706

Merged
auto-submit[bot] merged 2 commits into
flutter:masterfrom
nate-thegrate:on-clauses
Aug 6, 2024
Merged

auto-submit[bot] merged 2 commits into
flutter:masterfrom
nate-thegrate:on-clauses

Conversation

@nate-thegrate

@nate-thegrate nate-thegrate commented Aug 1, 2024 •

Copy link
Copy Markdown
Contributor

This pull request removes an // ignore: avoid_catches_without_on_clauses comment.

Note

Diffs are super tiny if you do "hide whitespace"!

@github-actions github-actions Bot added tool Affects the "flutter" command-line tool. See also t: labels. framework flutter/packages/flutter repository. See also f: labels. d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos labels Aug 1, 2024
@nate-thegrate nate-thegrate added the refactor Improving readability/efficiency without behavioral changes label Aug 1, 2024
Comment on lines -414 to -416
// The exception is rethrown, so don't catch only Exceptions.
} catch (exception) { // ignore: avoid_catches_without_on_clauses
if (exception is io.ProcessException) {

@nate-thegrate nate-thegrate Aug 1, 2024 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It used to be that this block called status?.cancel(); before checking the exception's type, but then that was removed in #115801. With that line out of the way, we can convert this to an on clause!

@nate-thegrate
nate-thegrate marked this pull request as ready for review August 1, 2024 23:58
Comment thread examples/api/lib/material/autocomplete/autocomplete.4.dart Outdated

@goderbauer goderbauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

Thanks for the clean-up!

@nate-thegrate nate-thegrate added the autosubmit Merge PR when tree becomes green via auto submit App label Aug 6, 2024
@auto-submit
auto-submit Bot merged commit 0397e89 into flutter:master Aug 6, 2024
@nate-thegrate
nate-thegrate deleted the on-clauses branch August 6, 2024 02:00
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Aug 6, 2024
auto-submit Bot pushed a commit to flutter/packages that referenced this pull request Aug 6, 2024
Manual roll requested by [email protected]

flutter/flutter@3832823...1dd7141

2024-08-06 [email protected] Roll Flutter Engine from 376a853846ce to f5f6e966e7e7 (1 revision) (flutter/flutter#152911)
2024-08-06 [email protected] Pass --no-dds to some integration tests driven by flutter drive (flutter/flutter#152898)
2024-08-06 [email protected] Manual dependency bump (flutter/flutter#152881)
2024-08-06 [email protected] Add tests for ordered_traversal_group.0.dart (flutter/flutter#152849)
2024-08-06 [email protected] Implement `on` clauses (flutter/flutter#152706)
2024-08-06 [email protected] Roll Flutter Engine from bc140a0124b7 to 376a853846ce (2 revisions) (flutter/flutter#152905)
2024-08-06 [email protected] Roll Flutter Engine from e073ad2e3ad4 to bc140a0124b7 (1 revision) (flutter/flutter#152895)
2024-08-05 [email protected] added functionality to where SR will communicate button clicked (flutter/flutter#152185)
2024-08-05 [email protected] more docImports (flutter/flutter#151951)
2024-08-05 [email protected] Bump dartdoc to 8.0.13 (flutter/flutter#152896)
2024-08-05 [email protected] [Reland] Introduce `double` `Flex.spacing` parameter for `Row`/`Column` spacing (flutter/flutter#152890)
2024-08-05 [email protected] Fix CarouselView rebuild (flutter/flutter#152791)
2024-08-05 [email protected] Roll Flutter Engine from 1bfd06cda313 to e073ad2e3ad4 (4 revisions) (flutter/flutter#152889)
2024-08-05 [email protected] Add migration to git ignore SwiftPM build directories (flutter/flutter#152766)
2024-08-05 [email protected] Roll pub packages (flutter/flutter#152127)
2024-08-05 [email protected] Roll Flutter Engine from 0aac60342005 to 1bfd06cda313 (2 revisions) (flutter/flutter#152868)
2024-08-05 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Introduce `double` `Flex.spacing` parameter for `Row`/`Column` spacing (#152472)" (flutter/flutter#152885)
2024-08-05 [email protected] [Docs] DeviceOrientation Enum Correction (flutter/flutter#152876)
2024-08-05 [email protected] Move Linux_build_test tests from staging to prod (flutter/flutter#152877)
2024-08-05 [email protected] Introduce `double` `Flex.spacing` parameter for `Row`/`Column` spacing (flutter/flutter#152472)
2024-08-05 [email protected] Mark Linux_android_emu tests bringup: true (flutter/flutter#152867)

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

To file a bug in Packages: 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
TytaniumDev pushed a commit to TytaniumDev/flutter that referenced this pull request Aug 7, 2024
This pull request removes an `// ignore: avoid_catches_without_on_clauses` comment.

> [!NOTE]
> Diffs are super tiny if you do "hide whitespace"!
Buchimi pushed a commit to Buchimi/flutter that referenced this pull request Sep 2, 2024
This pull request removes an `// ignore: avoid_catches_without_on_clauses` comment.

> [!NOTE]
> Diffs are super tiny if you do "hide whitespace"!
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 11, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Dec 12, 2024
creatorpiyush pushed a commit to creatorpiyush/packages that referenced this pull request Jun 10, 2026
)

Manual roll requested by [email protected]

flutter/flutter@3832823...1dd7141

2024-08-06 [email protected] Roll Flutter Engine from 376a853846ce to f5f6e966e7e7 (1 revision) (flutter/flutter#152911)
2024-08-06 [email protected] Pass --no-dds to some integration tests driven by flutter drive (flutter/flutter#152898)
2024-08-06 [email protected] Manual dependency bump (flutter/flutter#152881)
2024-08-06 [email protected] Add tests for ordered_traversal_group.0.dart (flutter/flutter#152849)
2024-08-06 [email protected] Implement `on` clauses (flutter/flutter#152706)
2024-08-06 [email protected] Roll Flutter Engine from bc140a0124b7 to 376a853846ce (2 revisions) (flutter/flutter#152905)
2024-08-06 [email protected] Roll Flutter Engine from e073ad2e3ad4 to bc140a0124b7 (1 revision) (flutter/flutter#152895)
2024-08-05 [email protected] added functionality to where SR will communicate button clicked (flutter/flutter#152185)
2024-08-05 [email protected] more docImports (flutter/flutter#151951)
2024-08-05 [email protected] Bump dartdoc to 8.0.13 (flutter/flutter#152896)
2024-08-05 [email protected] [Reland] Introduce `double` `Flex.spacing` parameter for `Row`/`Column` spacing (flutter/flutter#152890)
2024-08-05 [email protected] Fix CarouselView rebuild (flutter/flutter#152791)
2024-08-05 [email protected] Roll Flutter Engine from 1bfd06cda313 to e073ad2e3ad4 (4 revisions) (flutter/flutter#152889)
2024-08-05 [email protected] Add migration to git ignore SwiftPM build directories (flutter/flutter#152766)
2024-08-05 [email protected] Roll pub packages (flutter/flutter#152127)
2024-08-05 [email protected] Roll Flutter Engine from 0aac60342005 to 1bfd06cda313 (2 revisions) (flutter/flutter#152868)
2024-08-05 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Introduce `double` `Flex.spacing` parameter for `Row`/`Column` spacing (#152472)" (flutter/flutter#152885)
2024-08-05 [email protected] [Docs] DeviceOrientation Enum Correction (flutter/flutter#152876)
2024-08-05 [email protected] Move Linux_build_test tests from staging to prod (flutter/flutter#152877)
2024-08-05 [email protected] Introduce `double` `Flex.spacing` parameter for `Row`/`Column` spacing (flutter/flutter#152472)
2024-08-05 [email protected] Mark Linux_android_emu tests bringup: true (flutter/flutter#152867)

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

To file a bug in Packages: 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
bisor0627 pushed a commit to bisor0627/packages that referenced this pull request Jun 19, 2026
)

Manual roll requested by [email protected]

flutter/flutter@3832823...1dd7141

2024-08-06 [email protected] Roll Flutter Engine from 376a853846ce to f5f6e966e7e7 (1 revision) (flutter/flutter#152911)
2024-08-06 [email protected] Pass --no-dds to some integration tests driven by flutter drive (flutter/flutter#152898)
2024-08-06 [email protected] Manual dependency bump (flutter/flutter#152881)
2024-08-06 [email protected] Add tests for ordered_traversal_group.0.dart (flutter/flutter#152849)
2024-08-06 [email protected] Implement `on` clauses (flutter/flutter#152706)
2024-08-06 [email protected] Roll Flutter Engine from bc140a0124b7 to 376a853846ce (2 revisions) (flutter/flutter#152905)
2024-08-06 [email protected] Roll Flutter Engine from e073ad2e3ad4 to bc140a0124b7 (1 revision) (flutter/flutter#152895)
2024-08-05 [email protected] added functionality to where SR will communicate button clicked (flutter/flutter#152185)
2024-08-05 [email protected] more docImports (flutter/flutter#151951)
2024-08-05 [email protected] Bump dartdoc to 8.0.13 (flutter/flutter#152896)
2024-08-05 [email protected] [Reland] Introduce `double` `Flex.spacing` parameter for `Row`/`Column` spacing (flutter/flutter#152890)
2024-08-05 [email protected] Fix CarouselView rebuild (flutter/flutter#152791)
2024-08-05 [email protected] Roll Flutter Engine from 1bfd06cda313 to e073ad2e3ad4 (4 revisions) (flutter/flutter#152889)
2024-08-05 [email protected] Add migration to git ignore SwiftPM build directories (flutter/flutter#152766)
2024-08-05 [email protected] Roll pub packages (flutter/flutter#152127)
2024-08-05 [email protected] Roll Flutter Engine from 0aac60342005 to 1bfd06cda313 (2 revisions) (flutter/flutter#152868)
2024-08-05 98614782+auto-submit[bot]@users.noreply.github.com Reverts "Introduce `double` `Flex.spacing` parameter for `Row`/`Column` spacing (#152472)" (flutter/flutter#152885)
2024-08-05 [email protected] [Docs] DeviceOrientation Enum Correction (flutter/flutter#152876)
2024-08-05 [email protected] Move Linux_build_test tests from staging to prod (flutter/flutter#152877)
2024-08-05 [email protected] Introduce `double` `Flex.spacing` parameter for `Row`/`Column` spacing (flutter/flutter#152472)
2024-08-05 [email protected] Mark Linux_android_emu tests bringup: true (flutter/flutter#152867)

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

To file a bug in Packages: 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 d: api docs Issues with https://api.flutter.dev/ d: examples Sample code and demos framework flutter/packages/flutter repository. See also f: labels. refactor Improving readability/efficiency without behavioral changes tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants