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

Migrate to compatible with Dart 3 #108

Merged
merged 2 commits into from
Jun 21, 2023

Conversation

joaobracaioli
Copy link

@joaobracaioli joaobracaioli commented Jun 17, 2023

This PR adds support for Dart 3

  • Remove unused dependencies
  • Bump flutter SDK to >=2.17 < 4.0.0
  • Migrate lints to default flutter_lints

@joaobracaioli joaobracaioli changed the title Migrate to flutter 3 Migrate to compatible with Dart 3 Jun 17, 2023
Copy link
Collaborator

@leoiacovini leoiacovini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

apart from pubspec I see that most changes are to the example application. LGTM

I think we may want to review some nullability decisions (for instance, what are the tradeoffs of having a nullable nuvigator, vs making it lazy init to it)

@@ -94,7 +94,7 @@ class MainAppRouter extends NuRouter {
HandleDeepLinkFn get onDeepLinkNotFound => (
INuRouter router,
Uri uri, [
bool isFromNative,
bool? isFromNative,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this be nullable? or it should be forcing a false value instead?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i think it should be nullable, because isFromNative is optional

## 1.0.0-beta.2
- Add support from Navigation coming from Native side on Next API
  - `INuRouter.getRoute` now accepts an optional `isFromNative` option
  - `NuvigatorState.open` now accepts an optional `isFromNative` option

@obraca obraca merged commit b182429 into nubank:master Jun 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants