Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): get css & js urls using flutter utility #453

Merged
merged 1 commit into from
Jul 12, 2023

Conversation

p-mazhnik
Copy link
Contributor

In Flutter it is possible to customize the location that assets will be loaded from (e.g. using assetBase meta tag or providing this property to engine initializer directly)
Current solution assumes that js script and css file are always under <rootUrl>/assets/ directory, which is not true if assetBase is used. So in the current PR I use getAssetUrl utility provided by Flutter that respects assetBase

https://github.com/flutter/engine/blob/942909b77001b4904e26aa29e3cac63345108a0a/lib/web_ui/lib/ui_web/src/ui_web/asset_manager.dart#L76-L81

@ponnamkarthik ponnamkarthik merged commit 00a0304 into ponnamkarthik:master Jul 12, 2023
1 check passed
@p-mazhnik p-mazhnik deleted the url-fix branch July 12, 2023 05:56
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.

None yet

2 participants