Comments (3)
The title says you are loading the HTML from an asset, but that's not what the code here is doing; you're loading the code as a string. You can't use a relative URL to load a JavaScript file if you've loaded the HTML as a string, because there's nothing for it to be relative to.
Closing as this is a bug in the provided code, rather than the plugin; there is no way for the webview to know where "java/FWDEVPlayer.js" is in this context. If you want to load a string, it needs to be self contained or use only absolutely addressable references.
from flutter.
okay understand but if I ..loadFlutterAsset('assets/index.html') this it's works and in this case, I want to pass a parameter to my HTML/JS file can you help me?
from flutter.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
from flutter.
Related Issues (20)
- Drop the timeout of fuchsia_linux from 75 minutes to 60 minutes HOT 2
- Native assets: visionOS support HOT 1
- Invalid argument(s): Invalid locale "ku" HOT 2
- Proposal: Mark `dart:ui#Paint` `final`. HOT 2
- Post-submit CI fails to receive new commits across all Flutter repos due to GOB regression HOT 3
- Screen Readers won't read punctuation characters in Shortcuts HOT 4
- Phase 1 (wave 2) upgrade iOS 17 devices HOT 1
- `TextField` widgets in Flutter DevTools are being treated as new password inputs HOT 1
- [Impeller] Direct encode on Vulkan doesn't account for dynamic state. HOT 9
- Mark intentionally cancelled builds as `cancelled` instead of `failed` HOT 1
- [web] No callbacks called in `HtmlElementView.fromTagName` when key matches HOT 1
- [Impeller] Vulkan backend doesn't respect resolving store actions. HOT 3
- Add new win arm bots (win-17..20) into flutter prod pool HOT 2
- Datastore to Firestore Migration
- [Android] Virtual display - Buggy resize with Android 12+ HOT 21
- Swarming client not being installed on new win bots HOT 4
- Windows_android basic_material_app_win__compile is 2.11% flaky HOT 2
- Windows module_host_with_custom_build_test is 2.11% flaky HOT 17
- Mac_arm64_android integration_test_test is 3.09% flaky HOT 2
- Linux_pixel_7pro draw_atlas_perf_opengles__timeline_summary is 2.06% flaky HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter.