Skip to content

Commit 2ea3e81

Browse files
committed
docs: update NOTES
1 parent 6cd9499 commit 2ea3e81

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

NOTES.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,10 @@ Future work may include:
1515
- Audio & VIDEO handling
1616
- Integration with native callkit frameworks
1717

18+
### Regarding imports
19+
20+
So, this is a tricky one I hope to resolve soon. For now, one should use the web_callkit_web.dart import instead of the web_callkit.dart import.
21+
22+
This is because the web_callkit.dart import is a stub for the web_callkit_web.dart import. This is due to multiple instances are created when calling `WebCallKit.instance` in a web OS environment. Even though a `WebCallKitWeb` object is created and registered with the plugin, it seems the Flutter still prefers the MethodChannel file filled with stubs.
23+
24+
If you have a solution for this, please let me know. I would love to hear it or submit a PR addressing the issue. Note, the issue crops up in child dependencies of the plugin, e.g. [twilio_voice](https://pub.dev/packages/twilio_voice) but is not found in the example project.

0 commit comments

Comments
 (0)