When I download any project that has different sdk version,everytime I have some troubles until running the project.Manually I change some data...It is so painfull to do it.Is there any way that automaticly optimizes flutter sdk version ?By doing it I can easyly build any flutter project.
Your problem as I saw in the image it's about an Indentation error which unfortunately you must fix it because pubspec.yaml use it.
To big understand Indentation Which is a different style of syntax in file formats try this with Python Indentation.
Related
I'm considering building my app with Flutter because of the attractive cross-compilation features, native feel, and speed of development.
I need to use an advanced audio processing library to be able to make my app, so the options I was considering are either to use JUCE through CocoaPods (a C++ audio library) or AudioKit (a Swift audio library) with Flutter.
I think JUCE is definitely possible to use with Flutter as I've seen two github projects which seemed to implement it (https://github.com/audiooffler/JucyFluttering and https://github.com/tomduncalf/juce-flutter-integration). I haven't been able to get it running on my own setup though, the build succeeds but when I use the first link (JucyFluttering) but I get an error as follows: https://justpaste.it/9c8xe. I've tried to look into it for a while and couldn't figure out what is going wrong. If anyone has an idea or approach to move from here
The other option I was considering is building an iOS only app for my prototype using Flutter and AudioKit (Swift-based), and then reusing the Flutter UI code with JUCE when I want to move to cross-platform. However, I'm totally clueless on how to go about bringing AudioKit into my Flutter project. The library is not on pub.dev so including it in my pubspec.yaml file, I get the following: "Because audiokit_flutter depends on audiokit any which doesn't exist (could not find package audiokit at https://pub.dartlang.org), version solving failed." when I try to run "flutter pub get".
I'm not even sure if the AudioKit approach is viable, but if anyone has any relevant knowledge, please share it with me! I've been trying to figure this out for weeks and it has been very frustrating! I would very very much appreciate the help.
Thank you so much!
What is the cause of this situation, I wrote to the hereMap support team, but no one responded.
https://i.stack.imgur.com/lwV7R.jpg
EDİT: The latest version(4.12.7.0) of Heremap fixed this problem. please update SDK to latest version.
I ran into this issue as well.
As of the moment of writing this answer, the HERE SDK =< v3.12.3 is not compatible yet with Flutter 3.x due to this issue with platform views, as described in their release log here.
Solution is to use FVM and run the app using Flutter version 2.10.5.
Replace the HereMap in your Stack with an image. Then you will see that this is not related to your emulator nor the map. From the screenshot it looks like a problem with your visual tree.
I'm using deferred in flutter for split code into a separated file, but it work done with android and web and also with windows, but about ios and mac doesn't good and make a problem, anyone knows more about it, or use it?
I get more info about it, in this link deferred component
can I write a condition on it,like work only for a specific platform?
thanks.
I have installed all the plugins, Dart and Flutter specifically.
On the screen after "create new flutter project", there are only two languages shown: Java and Kotlin. That's all. They have changed the UI and it just turned the whole game for beginners like me.
Those languages you see are only if you want to write native plugins.
Your Flutter project will always be using Dart. You cannot select it because no choice is possible. It's Dart. Always.
Just continue with the wizard as normal and it will create a Flutter project using Dart.
To be more precise, I already have a huge app writen in Ionic and now we're considering to migrate it to flutter, but we can't rewrite it from scratch, both ionic and flutter should coexist.
So my question is: can I have a flutter app as a "host" and import / run the ionic app inside it? Something like a micro frontend.
Until now I was able to build the target ionic app and import it on the flutter app, under android folder, but it does not feels like a productive way to approach the problem.
I also googled a little bit about this integration, but did not find anything that solves this problem.
I appreciate any help on this topic.
Yes, it is possible, but very cumbersome.
I did it for a project and embedded 3 ionic apps inside flutter.
I'll not list every problem that i faced but just go through some points to give you an idea.
You will need to take care of some cordova plugins that use native code, for Android copy and paste some folders like CordovaLib,cordova and use it as a library. For iOS you must add the plugin files like *.h to the compiles list inside Xcode and create an Pod to get the cordova resources (that's the way i did)
To "launch" the app for android you need to start the cordova activity and for iOS you need to play with UINavigationController and FlutterViewController, and of course create a method channel to be possible to call it from Flutter.
For multiple apps, you have to mess inside de cordova code to get the app from the right www folder and be sure to equalize every plugin version between apps.
Some packages from flutter may clash with ionic/cordova libs
Every change you do to your ionic application it must be tested outside flutter and within it to see if there's any mismatch behavior that you didn't expect, specially when adding new plugins.
Maybe some permission issues will arrive between applications like camera or localization.
I know thats not the answer, but when searching on how to do it, i stumbled upon this question a few months ago and it still without any answer on this problem.
But my final take is that the effort of joining together all pieces using multiple languages and frameworks together with the job of maintaining this spaghetti behemoth is not worth it and you'll save yourself of a tremendous headache.