Skip to content
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

feat: use native navigation instead of getX navigation #6

Merged
merged 11 commits into from
May 7, 2024

Conversation

buehler
Copy link
Collaborator

@buehler buehler commented May 6, 2024

This removes get (getX) as the underlying navigation engine.
Since GetX also routes with the native navigation stack,
this can be directly used instead of passed to get which
then in turn passes it to flutter. While doing this, the services
were redesigned and all navigation related matters are now in
the navigation service only.

BREAKING CHANGE: The DialogService was deleted.
Dialog related methods are now in the NavigationService.

BREAKING CHANGE: The BottomSheetService was deleted.
All related methods are now in the NavigationService.

BREAKING CHANGE: the close methods for dialog and
sheet (closeDialog and closeSheet) are removed. They
are unified in the method closeOverlay in the NavigationService.

BREAKING CHANGE: Since getX is removed, the base logic of
the entry point in the app could be simplified. Instead of
the key and observer being methods, they are now static
initialized fields on the navigation service.

BRAKING CHANGE: The preventDuplicates parameter for the
navigation method is gone. Currently, with native
navigation, the user of the package is responsible to
have an overview of the navigation stack.

@buehler buehler requested a review from nschaer92 May 6, 2024 12:57
@buehler buehler marked this pull request as draft May 6, 2024 15:42
@buehler buehler marked this pull request as ready for review May 7, 2024 08:47
@nschaer92 nschaer92 merged commit e9cf309 into main May 7, 2024
4 checks passed
@nschaer92 nschaer92 deleted the feat/remove-getx branch May 7, 2024 09:19
buehler pushed a commit that referenced this pull request May 7, 2024
# [3.0.0](v2.0.1...v3.0.0) (2024-05-07)

### Features

* use native navigation instead of getX navigation ([#6](#6)) ([e9cf309](e9cf309))

### BREAKING CHANGES

* The `DialogService` was deleted.
Dialog related methods are now in the `NavigationService`.
* The `BottomSheetService` was deleted.
All related methods are now in the `NavigationService`.
* the close methods for dialog and
sheet (`closeDialog` and `closeSheet`) are removed. They
are unified in the method `closeOverlay` in the `NavigationService`.
* Since getX is removed, the base logic of
the entry point in the app could be simplified. Instead of
the key and observer being methods, they are now static
initialized fields on the navigation service.

BRAKING CHANGE: The `preventDuplicates` parameter for the
navigation method is gone. Currently, with native
navigation, the user of the package is responsible to
have an overview of the navigation stack.
@buehler
Copy link
Collaborator Author

buehler commented May 7, 2024

🎉 This PR is included in version 3.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants