Upgrade to Pro — share decks privately, control downloads, hide ads and more …

FlutterにiOS 14などの新機能を取り込むには

6ef7914944df6af99a2ca81e98087332?s=47 Shotaro Tao
December 21, 2020

FlutterにiOS 14などの新機能を取り込むには

Flutter × Kotlin Multiplatform by CyberAgent 2020/12/21

6ef7914944df6af99a2ca81e98087332?s=128

Shotaro Tao

December 21, 2020
Tweet

Transcript

  1. Shotaro Tao 2020-12-21 Flutter ʹ iOS 14 ͳͲͷ৽ػೳΛऔΓࠐΉʹ͸ Flutter ×

    Kotlin Multiplatform by CyberAgent
  2. # ՝୊ ωΠςΟϒίʔυΛ࢖ΘͣʹΞϓϦ։ൃ͕Ͱ͖ΔݴޠΛਓʹקΊΔͱ • ͑ɺUIͬͯͲ͏ͳΔͷʁ • ػೳ੍͕ݶ͞Εͦ͏ • iOSɾAndroidʹग़Δ৽͍͠ػೳ΋औΓೖΕ͍ͨ

  3. # MethodChannelɺEventChannel State Flutter app (client) AppDelegate iOS host FlutterViewController

    iOSͷAPI ଞͷϥΠϒϥϦͷAPI
 ʢCocoapodsܦ༝ͳͲʣ MethodChannel FlutterMethodChannel
  4. σʔλͷड͚౉͠ StandardMessageCodec Dart null bool Int double String List Map

    Swift nil Bool Int Double String Array Dictionary Kotlin null Boolean Int Double String List HashMap MessageCodec ByteDataΛݩʹΤϯίʔυͱσίʔυΛߦ͏ϝιουΛ࣮૷
  5. MethodChannelɺEventChannelͷ࢖͍ํ

  6. MethodChannelɺEventChannelͷ࢖͍ํ

  7. MethodChannelɺEventChannelͷ࢖͍ํ

  8. ύοέʔδ

  9. ύοέʔδ

  10. ύοέʔδ

  11. ύοέʔδ

  12. ύοέʔδ

  13. ·ͱΊ • MethodChannel΍EventChannelΛར༻͢Δ͜ͱͰσʔλͷ΍ΓͱΓ͕ग़དྷΔ • ௨ৗͷΞϓϦͰར༻͢Δ༷ͳҐஔ৘ใͷऔಘɺσόΠε৘ใͷऔಘɺϩʔΧ ϧετϨʔδ΁ͷσʔλͷอଘɺϒϥ΢βͷදࣔͳͲ͸ϥΠϒϥϦͱͯ͠ެ ։͞Ε͍ͯΔ

  14. App ClipsɺWidgets (iOS 14) • ωΠςΟϒͰ࣮૷ͯ͠ɺσʔλͷ΍ΓͱΓ͚ͩMethodChannel΍ EventChannelΛར༻͢Δ • ϝΠϯΞϓϦͱผʹFlutterEngine΍FlutterViewControllerΛ༻ҙͯ͠Flutter Ͱ࣮૷͢Δ

  15. Flutterͷ࢓૊Έ Flutter Engine Dart Framework Platform-Speci f i c

  16. App Clips 􀭨 10MB 10.6MB <

  17. App Clips

  18. Widgets (iOS 14) Widgets Flutter shared_preferences 􀐛 ߋ৽(MethodChannel)