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

Add Flutter 3 Compatibility #1236

Merged
merged 3 commits into from
May 14, 2022
Merged

Add Flutter 3 Compatibility #1236

merged 3 commits into from
May 14, 2022

Conversation

JaffaKetchup
Copy link
Member

@JaffaKetchup JaffaKetchup commented May 13, 2022

@JaffaKetchup JaffaKetchup changed the title Update dependencies (Flutter 3) Add Flutter 3 Compatibility May 13, 2022
Copy link
Collaborator

@ibrierley ibrierley left a comment

Choose a reason for hiding this comment

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

I think my only problem with this is flutter_lints. Forcing it to ^2.0.1 in the pubspec.yaml (in example and root folder), forces users to upgrade to Flutter3 (or a later flutter version anyway), which feels a bit too soon. Is there any specific reason to require this, and not just have ">=1.0.4" or something ?

@JaffaKetchup
Copy link
Member Author

I would agree if it does force Flutter 3 usage then it needs to be changed. But as far as I can see, in both flutter_lints and lints (it's dependency), Flutter 3 usage isn't forced. Maybe I'm misunderstanding something?

https://github.com/flutter/packages/blob/main/packages/flutter_lints/pubspec.yaml
https://github.com/dart-lang/lints/blob/main/pubspec.yaml

@ibrierley
Copy link
Collaborator

Sorry, yes, it doesn't force 3, but >= 2.17.0 which is ahead of what I typically use 2.15.1 (so guessing others would be similar). I'm not sure whats a minimum most are on.

@ibrierley
Copy link
Collaborator

Sorry again, that's the Dart version, looks like typically I'm on Dart 2.15.1, flutter 2.8.1,

@JaffaKetchup
Copy link
Member Author

Ok, I've relaxed the constraints. Note that the checks use the latest version available every time, so the code formatting must still match those rules, even if an editor may not necessarily warn the developer about those infractions.

@ibrierley
Copy link
Collaborator

I think flutter_map_example pubspec.yaml needs to be changed as well to match

@JaffaKetchup
Copy link
Member Author

I did change the example as well.

@ibrierley
Copy link
Collaborator

Strange, I can see the files updated in here, but it doesn't seem to be checking the correct version out, maybe something gone astray my end. Will dig.

Copy link
Collaborator

@ibrierley ibrierley left a comment

Choose a reason for hiding this comment

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

Ok, all good for me now, thanks!

@JaffaKetchup JaffaKetchup merged commit e3ce83a into fleaflet:master May 14, 2022
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.

[BUG] Example cannot compile with Flutter 3 on Android
2 participants