Skip to content

Keep package:meta import for Flutter <3.35#279

Merged
droibit merged 1 commit into
developfrom
meta-import-backcompat
Nov 23, 2025
Merged

Keep package:meta import for Flutter <3.35#279
droibit merged 1 commit into
developfrom
meta-import-backcompat

Conversation

@droibit

@droibit droibit commented Nov 23, 2025

Copy link
Copy Markdown
Owner

Keep the explicit package:meta import for backward compatibility with Flutter versions older than 3.35.0, where the @internal annotation is provided by the meta package. Suppress the analyzer unnecessary_import warning on newer SDKs that re-export @internal from package:flutter/foundation.dart.

Keep the explicit `package:meta` import for backward compatibility with Flutter versions older than 3.35.0, where the `@internal` annotation is provided by the `meta` package. Suppress the analyzer `unnecessary_import` warning on newer SDKs that re-export `@internal` from `package:flutter/foundation.dart`. Refs: flutter/flutter@5706259
@droibit droibit added this to the 2.5.0 milestone Nov 23, 2025
@droibit droibit self-assigned this Nov 23, 2025
Copilot AI review requested due to automatic review settings November 23, 2025 15:58
@droibit droibit added the enhancement New feature or request label Nov 23, 2025

Copilot AI 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.

Pull request overview

This PR adds backward compatibility for the @internal annotation by keeping the explicit package:meta import and suppressing the unnecessary_import analyzer warning for Flutter SDKs >= 3.35.0.

  • Adds explanatory comments describing why the package:meta import is retained
  • Suppresses the unnecessary_import analyzer warning using // ignore:

@droibit droibit merged commit 964e3d3 into develop Nov 23, 2025
6 of 7 checks passed
@droibit droibit deleted the meta-import-backcompat branch November 23, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants