Skip to content

hide AssetManifest from flutter services imports - #285

Merged
guidezpl merged 1 commit into
material-foundation:mainfrom
andrewkolos:hide-AssetManifest-from-flutter-services-import
Jan 27, 2023
Merged

guidezpl merged 1 commit into
material-foundation:mainfrom
andrewkolos:hide-AssetManifest-from-flutter-services-import

Conversation

@andrewkolos

Copy link
Copy Markdown
Contributor

The flutter framework wishes to add a new class named AssetManifest to its API (see flutter/flutter#119277). However, doing so would break integration tests that utilize google_fonts due to name collision with the AssetManifest class that this package already defines (see flutter/flutter#119273).

This PR adds hide AssetManifest to the package:flutter/services.dart imports this package contains, which will allow the flutter framework to introduce this class without breaking its integration tests that utilize google_fonts.

Once flutter's new AssetManifest API is available, this package can be updated to use it instead of defining its own custom AssetManifest class, since flutter's will provide the same functionality and more.

@andrewkolos andrewkolos changed the title hide AssetManifest from flutter services import in google_fonts_base.dart hide AssetManifest from flutter services imports Jan 26, 2023

@guidezpl guidezpl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the pre-emptive action

@guidezpl
guidezpl merged commit 3cb305e into material-foundation:main Jan 27, 2023
@jonahwilliams

Copy link
Copy Markdown

Do we need to publish this and update the benchmarks that use it?

@andrewkolos

Copy link
Copy Markdown
Contributor Author

@jonahwilliams Yeah, we need to publish this and also update gallery to use the new version. @guidezpl, is there anything I can/need to do here to get this change published?

@guidezpl

Copy link
Copy Markdown
Collaborator

I published 4.0.1 so you can update the gallery

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