[flutter] ( flutter || React Native ) + Kotlin/Swift => app
고민거리가 생겼다..
제목에 적은것 처럼 멀티 플랫폼 코드에 native코드 합쳐서 앱만들기.
현재 회사에 app팀이 있고, web팀이 있기에 한쪽에서 모든걸 다 가져갈수가 없다..
한쪽에서 다 가져가게 되면 어느 한팀은 사라져야 한다..
팀으로 구성되어있는 회사에서 갑자기 팀을 없에는건 정말 위기 상황으로 인한
인원 감축이 아니라면 불가능 할것같다..
그래서 가능한지를 찾아보았다.
--
결론적으로는 가능은 하다..
하지만 어렵고 복잡하다고 한다.
대강 찾아보니 flutter 에서는 위젯으로 감싸서 사용을 한다고 하는대 조금더 찾아보긴해야겠다.
참고 링크.
https://docs.flutter.dev/platform-integration/android/platform-views#putting-it-together
Hosting native Android views in your Flutter app with Platform Views
Learn how to host native Android views in your Flutter app with Platform Views.
docs.flutter.dev
https://api.flutter.dev/flutter/widgets/PlatformViewLink-class.html
PlatformViewLink class - widgets library - Dart API
Links a platform view with the Flutter framework. Provides common functionality for embedding a platform view (e.g an android.view.View on Android) with the Flutter framework. The platform view's lifetime is the same as the lifetime of the State object for
api.flutter.dev
https://api.flutter.dev/flutter/widgets/AndroidViewSurface-class.html
AndroidViewSurface class - widgets library - Dart API
Integrates an Android view with Flutter's compositor, touch, and semantics subsystems. The compositor integration is done by adding a TextureLayer to the layer tree. The parent of this object must provide bounded layout constraints. If the associated platf
api.flutter.dev
https://api.flutter.dev/flutter/services/PlatformViewsService-class.html
PlatformViewsService class - services library - Dart API
Provides access to the platform views service. This service allows creating and controlling platform-specific views. Properties hashCode → int The hash code for this object. read-onlyinherited runtimeType → Type A representation of the runtime type of
api.flutter.dev
https://api.flutter.dev/flutter/widgets/AndroidView-class.html
AndroidView class - widgets library - Dart API
Embeds an Android view in the Widget hierarchy. Requires Android API level 23 or greater. Embedding Android views is an expensive operation and should be avoided when a Flutter equivalent is possible. The embedded Android view is painted just like any othe
api.flutter.dev