![]() ![]() ![]() 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 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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |