-
Notifications
You must be signed in to change notification settings - Fork 845
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: replace flutter_keyboard_visibility with flutter_keyboard_visibility_temp_fork to support Flutter/Wasm target #2293
Conversation
…lity_temp_fork to support wasm and be able to target latest version of compileSdkVersion
Was able to build the app for Flutter/WASM, however still having an issue running the example app: Details
Which seems to be related to hydrated_bloc. See bloc #4230 After removing Seems like a simple issue that require minor changes. Update: Was able to fix those minor issues and seems to be running without any noticeable issues with Flutter/Wasm target on the web. |
It looks like import 'web/quill_controller_web_stub.dart'
if (dart.library.html) 'web/quill_controller_web_real.dart'; So our code expects to use The alternative of This comment will be updated soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It bothers me to see a package with a label 'temp_fork'.
As a user, when I see this, I immediately worry that the main package is not stable, is going to have big breaking changes, or the function is a kludge and is likely to disappear. I know this is not your intent, but it sets up subliminal red flags.
Is it possible to remove 'temp'?
I have no problem with the code.
Already updated the
This is why I suggested that we should be more cautious in the future when adding packages, especially plugins, the original package hasn't been updated in pub.dev for 2 years and on GitHub for 9 months, there were minor changes since those last 2 years, you will notice that they still didn't migrated to flutter_lints from pedantic which was last published before 3 years. See their commit history. Why I'm not worried about this?
I'm still in the middle of #2230 so I can't develop a replacement for
I agree though I don't see any risk from this PR, we only use this plugin from one place in |
…ll_controller_web_stub.dart
The project failed to compile due to a conflict in dependencies. Here's the translated and elaborated error message:
This error indicates that there are duplicate class definitions in your project. Specifically, the BuildConfig class from the flutter_keyboard_visibility package is defined multiple times. This is likely because you have two versions of the same package in your project:
|
Have same issue with dex build, any update on this ? |
I also have same issue with dex build, any update? |
…lity_temp_fork to support Flutter/Wasm target (singerdmx#2293) * fix: replace flutter_keyboard_visibility with flutter_keyboard_visibility_temp_fork to support wasm and be able to target the latest version of compileSdkVersion on Android * fix(example): remove hydrated_bloc to run Flutter/Wasm * fix(wasm): avoid using quill_controller_web_stub.dart for web which will throw exception due to usage of dart.library.html in a conditional check * chore: remove web package as no longer used * chore: add related comments to quill_controller_web_real.dart and quill_controller_web_stub.dart * chore: format quill_controller_web_real.dart and quill_controller_web_stub.dart
Fixed in newer versions of |
Description
Replace flutter_keyboard_visibility with flutter_keyboard_visibility_temp_fork to support Flutter/Wasm target.
This is not a future-proof solution and we should replace the plugin, we might have our own solution in
quill_native_bridge
or develop a separate plugin.Related Issues
Type of Change