Skip to content

Hangar for Android -- rewritten in Kotlin and Flutter

License

Notifications You must be signed in to change notification settings

mimicmobile/hangar

Repository files navigation

Hangar

Hangar (3.0?) for Android -- rewritten in Kotlin and Flutter Currently a WIP rebuild of the original Hangar

TODO

  • Ability to change the 'switch page' icon
  • App shortcuts/Stats widgets

Screenshots

Why?!

The motivation behind this rewrite is explained in this youtube video!

Building

There are a few glitches and gotchas that seem to happen (currently) when your Android app has a Flutter module.

  1. Set the sdk.dir and flutter.sdk variables in app/settings/.android/local.properties to reflect where you have the Android SDKs and flutter SDK installed respectively.
  2. If you wish to use Flutter hot reload, run flutter attach in app/settings before running a debug build.
  3. Dart support seems to randomly switch off in Android Studio. Enable to fix.
  4. Occasionally the io.flutter.plugins.GeneratedPluginRegistrant import in MainActivity will fail to be found by Android Studio. Gradle sync will look like it's succeeding but you'll see the pinned message that it has failed. Restarting Android Studio seems to fix this.