I'm learning flutter right now and I want develop a app that use the smartphone camera, but I'm not finding anything in the flutter docs that help me with native resources of the smartphone. I basically want develop a app that user can use to cut a image and save it.
Can anyone help me with this?
With flutter you use plugins to access native API's.
You can either create your own plugin using the following documentation
https://flutter.dev/docs/development/packages-and-plugins/developing-packages
or run an existing one from www.pub.dev like https://pub.dev/packages/image_picker
Related
I'm fairly new to Flutter but have found that it fits most of my design needs for iOS and Android. But, I've been unable to find a way to dynamically change the app icon.
In Swift, you were able to change the app icon from inside the actual app allowing for some pretty neat customization. A Medium article discussed this back when it first came out for iOS 10.3.
Does anybody know of any way to do this in Flutter, or will I need to make a custom package to do this?
https://medium.com/flutter-community/programatically-change-ios-app-icon-in-flutter-c9e84bc541a2
Maybe this would help. Here's a plugin too.
https://pub.dev/packages/flutter_dynamic_icon
I don't believe this is currently supported, and probably won't be by the flutter team although someone could theoretically write a plugin to do it. However, most of the configuration needs to be done natively anyways, so I don't know how much value the plugin would provide other than doing the call to setAlternateIconName.
What you should do is write the code directly in iOS as you would for a native iOS app, but expose a MethodChannel to the dart side which would allow you to control it from flutter.
I would like to know if it's possible to integrate a react vr tour inside an Android and/or iOS app developed with react native. If so, how can I do it?
This is just an idea but I haven't found a real solution on-line.
Thanks for your attention.
(I'm Italian. Excuse me if you do not understand my English)
You can't actually mix the usage of these two libraries. react-vr depends on react-native but has a totally different runtime. One possible solution is having a web view in react-native and displaying the react-vr content inside.
I have an app I'm wanting to try out in Flutter but one major thing may hold me back. Our app will need to access and edit the layout in code depending on what comes from saved data. A user can choose to leave something disabled, and those settings will be saved in a Realm.
Is this something that's possible with Flutter? I know it works with native code, but haven't been able to find anything yet indicating that native code can access widgets build in Flutter.
I see that Realm has a native Android and iOS plugin. With Flutter, you can use a MethodChannel to execute native code. So you could create a Realm wrapper for Flutter using native code.
In short: Yes it is possible.
This is a useful link if you end up creating a wrapper: https://flutter.io/platform-channels/
I wrote my app using native method, currently I want to use reactive native in our further development to avoid writing two copies of code for iOS and Android.
The problem is we can't completely rewrite all the code, we want to replace the project piece by piece.
So I am wondering if I can write some views of my project using reactive native and others remain native code that we have used a long time.
If this is possible, is there any existing tutorial about how to do this?
You can keep your originally written native code via native modules. You can port your current project pieces by pieces to native modules, then let React-Native have access to it.
I guess best option is, start a new React-Native project and make it access your native modules, you won't have to rewrite everything then.
Here is more info for Android and iOS
There is official documentation to this. Checkout:
https://facebook.github.io/react-native/docs/integration-with-existing-apps.html
I need to create a app that will run across Android and IOS, although i would like to avoid the native languages of both and only use JS/HTML/CSS, after digging a lot online i think that the solution would be to use Phonegap and Ionic Framework
The app is not complicated i just have to create simple drag and drop games that the user can review at any point and make changes to them.
The whole point is for a medic to create profiles for the patients and be able to consult them at any time.
Now my question is simple: will this do enough? or should i look into anything else?
Phonegap or Cordova are good solutions for you, then you have to build your UI with HTML. For drag & drop you could use jQueryUI
In my opinion, you have to go through with the PhoneGap/Cordova plugins
also, and go through with the which IDE is used for Development the Application like Xamarin,NetBeans etc.