opkshop.blogg.se

Kotlin with flutter
Kotlin with flutter






kotlin with flutter

If you coming from Java/Kotlin or Swift background you will not having problem when try Dart. If you want to build application for iOS and Android only then Flutter will be great solution for you, they have clear and well structured documentation, performance also better then another framework, the community still small if you compare to RN but it growing. Until now Flutter can’t receive Object from native side, to be able to use object we need to create Dart data object and convert input from Kotlin library(Map) into Dart object

kotlin with flutter

override fun getMovieSuccsess(searchViewModel: SearchViewModel) 6. In Android MainActivity you need to get parameter that send from Flutter side using this code val searchQuery = call.argument( "query") presenter.getMovieList(searchQuery!!)Īnd after get result from library you need to parse the model object into Maps to be able to process in Dart. To be able to call Kotlin library we need to use Flutter platform channels, for basic implementation you can check here.








Kotlin with flutter