Skip to content

Misc example clean up and updates - #13847

Merged
parlough merged 3 commits into
mainfrom
misc/example-misc-cleanup
Sep 2, 2026
Merged

Misc example clean up and updates#13847
parlough merged 3 commits into
mainfrom
misc/example-misc-cleanup

Conversation

@parlough

@parlough parlough commented Sep 2, 2026

Copy link
Copy Markdown
Member
  • Enable and fix some new lints.
  • Tighten some dependency constraints.
  • Use newer, preferred versions of some functions.
  • Improve formatting and clarity of some inline and doc comments.

@parlough
parlough requested review from a team and sfshaza2 as code owners September 2, 2026 13:03
gemini-code-assist[bot]

This comment was marked as resolved.

@flutter-website-bot

flutter-website-bot commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Staged preview of the updated docs.flutter.dev site (updated for commit a553e63):

https://flutter-docs-prod--docs-pr13847-misc-example-misc-clea-o0fbwshk.web.app

@flutter-website-bot

flutter-website-bot commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Staged preview of the updated flutter.dev site (updated for commit a553e63):

https://flutter-dev-230821--www-pr13847-misc-example-misc-clea-67vo11k1.web.app

@parlough
parlough marked this pull request as draft September 2, 2026 15:00
@parlough
parlough marked this pull request as ready for review September 2, 2026 15:05

@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 introduces various code quality, linting, and dependency updates across multiple Flutter examples and documentation files. Key changes include enabling strict-inference, specifying generic type arguments for Futures and dialogs, updating JSON parsing signatures to use Map<String, Object?>, and upgrading several dev dependencies. The review feedback correctly points out that replacing .catchError with .onError<Exception> in futures.dart and its documentation will fail to catch subclasses of Error (such as TypeError), which could lead to unhandled runtime crashes. It is recommended to use .onError<Object> instead to safely catch all asynchronous errors.

Comment thread examples/get-started/flutter-for/react_native_devs/lib/futures.dart
Comment thread sites/docs/src/content/flutter-for/react-native-devs.md

@abdallahshaban557 abdallahshaban557 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

@parlough
parlough merged commit 5aa5d3c into main Sep 2, 2026
16 checks passed
@parlough
parlough deleted the misc/example-misc-cleanup branch September 2, 2026 23:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants