Calling Java code (on Android) from Dart code in Flutter
- Install Android SDK and Flutter.
- Clone the repository.
- Run the Flutter app with
flutter run
Implement a method channel listener in the iOS host app (refer this guide) similar to the Android version. Then, this Flutter app will work as expected on iOS too.