项目作者: Fox520

项目描述 :
Flutter Add-to-app example with Kivy
高级语言: Python
项目地址: git://github.com/Fox520/KivyFlutterExperiment.git
创建时间: 2021-01-16T10:53:40Z
项目社区:https://github.com/Fox520/KivyFlutterExperiment

开源协议:

下载


KivyFlutterExperiment

Adding a Flutter app to a Kivy app using Flutter’s add-to-app feature.
The idea of this repository is to demonstrate data-exchange between the two platforms using Flutter’s Platform Channels.

Video

https://www.youtube.com/watch?v=VyPgORlWEn0

This repository is a simpler version of what is in the video, therefore it does not have the YouTube player example.

Setting up

  1. Run buildozer android debug
  2. Replace .buildozer/android/platform/build-armeabi-v7a/dists/myapp__armeabi-v7a/templates/build.tmpl.gradle with the one in this repository
  3. In build.tmpl.gradle, change the maven url CHANGE_ME to the absolute path of ‘repo’ in this repository
    Something like /home/User/KivyFlutterExperiment/flutter_side/repo
  1. Add below to .buildozer/android/platform/build-armeabi-v7a/dists/myapp__armeabi-v7a/templates/AndroidManifest.tmpl.xml
  1. <activity
  2. android:name="io.flutter.embedding.android.FlutterActivity"
  3. android:configChanges="orientation|keyboardHidden|keyboard|screenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
  4. android:hardwareAccelerated="true"
  5. android:windowSoftInputMode="adjustResize"
  6. ></activity>