JetLagged Home screen refresh
This PR introduces a dashboard type layout for the Jet lagged Home screen, which adjusts to different screen sizes (using WindowSizeClasses), and reflows cards to new lines when space limit is reached, using FlowRow and FlowColumn to achieve this.
Its also using LookaheadScope and a custom Modifier called Modifier.animateBounds taken from our [samples] (https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:compose/animation/animation/integration-tests/animation-demos/src/main/java/androidx/compose/animation/demos/lookahead/AnimateBoundsModifier.kt) to allow for smooth transitions between different layout sizes, as well as movableContentOf to keep animation state as content reflows.
Each card has the Modifier.animateBounds wrapping the size modifiers for smooth animations.
| Compact | Expanded |
|---|---|
https://github.com/android/compose-samples/assets/9973046/c437d30a-38aa-4cd4-bd9a-9bacfd990a6a
Known issues:
Tablet resize shows splash screen occasionally - working as intended: this is known as veiled resizing.