Hi everyone, I’m running into a build-time “duplicate class” error because Flutter Quill brings in its own fork of the flutter_keyboard_visibility
plugin (flutter_keyboard_visibility_temp_fork
), while FlutterFlow’s default template still includes the official flutter_keyboard_visibility
package. Simply adding a different version in Dependencies won’t help, since they don’t share the same pub package name.
Need to override FlutterFlow dependency
Custom Code
FlutterFlow’s new Custom Gradle Snippet feature should let me inject a global
allprojects {
configurations.all {
resolutionStrategy.dependencySubstitution {
substitute project(":flutter_keyboard_visibility")
with project(":flutter_keyboard_visibility_temp_fork")
}
}
}
block to collapse them at build time—but it never persists into the generated android/app/build.gradle
. I’ve already filed an issue (FF #6120), but if anyone has a workaround that doesn’t require ejecting the project, I’d really appreciate it. I’m blocked from building and testing my app until this is resolved. Thanks!
Yes
2