Open FDavidse20 opened 3 years ago
@FDavidse20 There is already an issue reported at here. It is more likely an issue with the flutter module created by android studio. If you can spend some time then I would recommend trying the following things:
flutter module
without android studio so it can use the latest flutter dependencies https://github.com/csdcorp/speech_to_text/issues/88#issuecomment-630786706Let us know if none of them work. We'll check on this.
I've also published a version(2.0.1-without-speech
) without the speech_to_text
package so you can continue the development.
@bietkul, thank you for the reply. Creating the module from the command line instead of with Android studio fixed the problem for me. But I think it would be an interesting idea to separate some of the functionality/dependencies from the flutter-searchbox. For example, I'll be hooking up the functionality of it with my own custom widgets. Meaning I'm not using the out of the box search widget with dropdown and speech to text functionality. What do you think about having the different functionalities that are now within flutter-searchbox spread out over multiple packages?
What do you think about having the different functionalities that are now within flutter-searchbox spread out over multiple packages?
@FDavidse20 I think flutter supports tree-shaking so it won't include the unused classes. I found a good article on this https://medium.com/flutter/optimizing-performance-in-flutter-web-apps-with-tree-shaking-and-deferred-loading-535fbe3cd674.
We can lazy load the speect_to_text
library to load the app faster.
Hi @bietkul , it's Filip from Funda again:
When using flutter-searchbox in a Flutter module it doesn't work anymore after the recent updates to incorporate null-safety. steps to reproduce:
flutter_searchbox: ^2.0.0-nullsafety
searchbase: ^2.0.1
Running pod install... 1,390ms CocoaPods' output: ↳ Preparing
Error output from CocoaPods: ↳ Ignoring ffi-1.12.2 because its extensions are not built. Try: gem pristine ffi --version 1.12.2
Error running pod install