Repository navigation
[Navigation] Introduce navigation-compose-material and support for bottom sheet navigation destinations #173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
jossiwolf
wants to merge
50
commits into
androidx:androidx-main
from
jossiwolf:jw/compose-bottom-sheet-nav
Closed
Changes from 1 commit
Commits
Show all changes
50 commits
Select commit
Hold shift + click to select a range
3806657
Introduce navigation-compose-material and support for bottom sheet na…
jossiwolf e575917
Document BottomSheetNavigator's behavior with nested flows more closely
jossiwolf 919f2cd
Clean up tests
jossiwolf 00b1234
Enable strict API mode
jossiwolf b0b5e6c
Use NAVIGATION's version for navigation-compose-material
jossiwolf 665feef
Rename "Compose Material Navigation" -> "Navigation Compose Material"
jossiwolf ad67867
Update BottomSheetNavigator's Navigator.Name to "BottomSheetNavigator…
jossiwolf 6ca9ba4
Remove unneeded dependency
jossiwolf 9308d85
Lint & Formatting
jossiwolf 74c6662
Apply Kotlin plugin through AndroidXUiPlugin#applyAndConfigureKotlinP…
jossiwolf 6bbf7d4
Add testOnSheetDismissedCalled_programmaticDismiss to test programmat…
jossiwolf 1a94248
Remove ActiveNavBackStackEntry.kt
jossiwolf a432a99
Manually apply Kotlin Plugin for now
jossiwolf 3923a87
Use runBlockingTest for SheetContentHostTest test methods
jossiwolf e56c40b
Use new LocalOwnersProvider API and lift SaveableStateHolder out of i…
jossiwolf 738ee79
Use public APIs for routes
jossiwolf 17ed7c8
Remove unneeded import
jossiwolf 869ad5a
Add NavGraphBuilderTest.kt to test the NavGraphBuilder#bottomSheet ex…
jossiwolf 38ede9d
Register navigator with navController as side effect
jossiwolf 0851e06
Remove old BackStackEntryIdViewModel API entry; we already have the c…
jossiwolf 35a46ad
Add test case for dismiss callback when ModalBottomSheetLayout starts…
jossiwolf e8c1dde
Add temporary workaround to pop back stack on sheet dismiss
jossiwolf 3a8d677
Experiment with custom-restoring state
jossiwolf 15f28f4
Use AndroidXComposePlugin instead of AndroidXUiPlugin
jossiwolf c94e5fb
Switch to NavigatorState#pop over popBackStack
jossiwolf eef6cc3
Revert "Experiment with custom-restoring state"
jossiwolf 4ae2f14
Access NavigatorState's back stack directly
jossiwolf cf63f07
Use transition APIs
jossiwolf 84616c2
Move sheet dismissal listener logic to SheetContentHost.kt
jossiwolf 37b4c9a
Remove BottomSheetNavigator's onBottomSheet param
jossiwolf 8b631ed
Revert "Move sheet dismissal listener logic to SheetContentHost.kt"
jossiwolf d4e0f94
Retrieve argument with getString instead of casting
jossiwolf 805db36
Make SheetContentHost's onSheetShown param non-optional
jossiwolf 732b43f
Add onSheetShown test
jossiwolf 9506246
Add state restoration test
jossiwolf b533643
`@Ignore` testSheetShownAfterNavControllerRestoresState
jossiwolf 55fef09
Use rememberNavController over manually creating NavHostController be…
jossiwolf df14817
Use popWithTransition
jossiwolf 9bba09d
Make sheetState an impl detail of BottomSheetNavigator.kt and expose …
jossiwolf 9e98f25
Use markTransitionComplete API
jossiwolf 80f1029
Pin Compose 1.0.1 for navigation-compose-material
jossiwolf c09724b
Use internalShow instead of show, the show call is cancelled
jossiwolf 4e8677b
Pop only dismissed sheet's entry
jossiwolf cb6739f
Mark all entries' transitions as complete
jossiwolf 88a78c5
Attach NavigatorState before first composition
jossiwolf c66eb71
Lint :)
jossiwolf 82f8ba8
Add `testNavigateCompletesEntriesTransitions` Test
jossiwolf 0e0046c
Make BottomSheetNavigator's fields public
jossiwolf adcf347
Add BottomSheetNavigator to NavController in composition
jossiwolf f3423e1
Remove `testNavigationNestedInGraph` test
jossiwolf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add BottomSheetNavigator to NavController in composition
Change-Id: I1f03e990370dc421cca089f65d24399446979eb3
- Loading branch information
commit adcf347914e5dc5239e89ce61a49f6c95971d3ca
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.