DEPRECATED - Demonstates how to create animated transitions to and from screens using Jetpack Compose.
Note: This version is now using the official release of Jetpack Compose 1.0.0 and was compiled using Android Studio Arctic Fox | 2020.3.1. The Canary builds are becoming too unstable at this point to continue supporting them. The Arctic Fox version also has a major bug. You cannot set the minSdkVersion to 21. The app will crash upon start. This bug has been documented with Google and they have acknowledged it. The minSdkVersion needs to be set to 24+ as a temporary solution.
A screenIsClosing parameter was added to each screen handler and is used to inform the screen when it is being closed.
In addition to upgrading to the latest canary version of Android Studio along with updates to the latest library dependencies, the Chris Banes Coil dependency was replaced with Google's (com.google.accompanist:accompanist-coil). The navigation library hasn't changed in this version.
Replaced navigateBackImmediately with onNavigateBack to support more options on navigating back. Added support for caching screens.
Added feature to uniquely identify an item in the navigation stack.Added an optional id parameter to navigateTo function to uniquely identify an item in the navigation stack. Added the getNavInfoById to retrieve the navigation stack item by its id.
A button was added to the Dummy screen to let you terminate the activity. If you then restart the activity, you'll notice that the screen state has been maintained.
Added NavigationManagerHelper interface to allow callbacks to viewmodels. Bugfix for crashes due to large navigation drawer image.