Umair
Umair

Reputation: 1877

How to run flutter application natively on android and ios separately?

I am working on flutter application, and i want that application to load and run natively on android studio without flutter sdk separately so that i can put some dependencies of native kotlin or java there and run natively from there.

I copied the android folder from flutter project and create a new native android application from it enter image description here

Upvotes: 5

Views: 3869

Answers (2)

Rudraksh Shukla
Rudraksh Shukla

Reputation: 166

I have also faced the same issue , after researching the internet I got to know that there are one way to include our flutter project to android as module and than you can use Flutter.createView to load your flutter widget. It is simple as that, you can also follow this blog for step by step instrucation

https://medium.com/flutter-community/add-flutter-to-existing-android-ios-app-ae8c4fb1582e

Upvotes: 2

Igor Kharakhordin
Igor Kharakhordin

Reputation: 9903

You can just open android folder in Android Studio and ios folder in Xcode. Flutter tools will generate needed modules for Android Studio project and CocoaPods for iOS project. You can also run and debug your app using native debuggers (Java/C/Objective-C/Swift) from these IDEs.

Then you can easily add dependencies by changing build.gradle of your android application. I think it's a bit more complicated with ios.

Upvotes: 0

Related Questions