-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix assertion error when page transition in declarative Navigation Sh…
…eet (#115) The core logic of the navigation sheet has been reworked to fix #94. Here's the summary: - Added `SheetExtentScopeKey`, which is a reference to a `SheetExtent` and also provides a hook to instantiation of the extent. - Added `SheetExtentFactory` and changed `SheetExtentScope` to be able to inject the factory of the extent object. - Changed the navigation sheet to use a specialized extent (called `_NavigationSheetExtent`) instead of the one created by the controller. - The `_NavigationSheetExtent` stores and manages the `SheetExtentScopeKey`s of the local extent scopes for each `NavigationSheetRoute. - Changed `NavigationSheetRoute` to create/discard a scope key when it is installed/disposed of. - Changed `NavigationSheetRouteContent` to attach the scope key associated with the parent `NavigationSheetRoute` to the child `SheetExtentScope`, which hosts the local sheet extent for the route. - Changed `_ProxySheetActivity` and `_TransitionSheetActivity` to the use scope key(s) to reference the local extent(s). This PR also involves some breaking changes in the **internal** APIs. - Renamed `initWith()` to `init()` in `SheetActivity`. - Removed `SheetExtentInitializer`. - Removed `initializer` and added `factory` in `SheetExtentScope`. - Removed `initializer` and added `factory` in `SheetContainer` as well. - Made `SheetExtentScopeState` private. - Removed `NavigationSheetEntry`.
- Loading branch information
Showing
10 changed files
with
464 additions
and
298 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.