microsoft / surface-duo-compose-sdk

This repo contains components built with Jetpack Compose for the Microsoft Surface Duo.
MIT License
74 stars 2 forks source link

Add backstack support to TwoPaneLayoutNav #50

Closed khalp closed 2 years ago

khalp commented 2 years ago

๐Ÿ“ƒ Description

Adds a manual backstack to TwoPaneLayoutNav so state can be saved between configuration changes, as well as updating the component to use NavGraphBuilder DSL instead of the custom Destination class, adding some NavOptions support to two pane mode, and adding a new navigateUpTo method to TwoPaneNavScope

๐Ÿค” Motivation and Context

Makes the navigation functionality more useful for developers, and updates the API to look more like the official Android navigation library

๐Ÿงช How Has This Been Tested?

Ran all UI tests, manually tested behavior on device

โš’๏ธ Does the PR contain new tests or refactored old ones?

Refactored old tests

๐Ÿ“ท Screenshots (if appropriate)

๐Ÿ“ฆ Types of changes

โœ… Checklist