Skip to content

Mismatch in Dart Min SDK Version #2245

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
matiasleyba opened this issue Jan 7, 2025 · 2 comments
Closed

Mismatch in Dart Min SDK Version #2245

matiasleyba opened this issue Jan 7, 2025 · 2 comments
Labels
date range picker Date range picker component solved Solved the query using existing solutions

Comments

@matiasleyba
Copy link

Bug description

Hi guys,

It appears that the Dart minimum SDK version specified in the package does not accurately reflect the latest features and changes implemented. For instance, the use of withValues(_lib/src/date_picker/date_picker.dart:5905_)—introduced in Flutter 3.27.x—requires a minimum Dart version of 3.6, not 3.3 as currently specified.

This mismatch could lead to issues like this, where developers using older Dart versions may encounter compatibility problems.

Would it make sense to consider updating the Dart minimum SDK version to 3.6 in the pubspec.yaml? This adjustment would better align with the package's actual requirements and help prevent such inconsistencies.

image

Steps to reproduce

Code sample

Code sample
#

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Stack Traces

Stack Traces
[Add the Stack Traces here]

On which target platforms have you observed this bug?

Android, iOS

Flutter Doctor output

Doctor output
[Add your output here]
@matiasleyba matiasleyba changed the title wrong min Dart SDK version Mismatch in Dart Min SDK Version Jan 7, 2025
@LavanyaGowtham2021 LavanyaGowtham2021 added date range picker Date range picker component open Open labels Jan 8, 2025
@BPraveenBalu
Copy link
Contributor

Hi Matias,

We would like to clarify that the mentioned Dart SDK version 3.6 is not the minimum required version for Flutter SDK 3.27.0. The actual minimum Dart SDK version for Flutter 3.27.0 is 3.3.

Additionally, the .withValues method in the Color class was introduced in the Flutter SDK, not the Dart SDK, so it will function correctly with both Flutter SDK version 3.27.0 and Dart minimum SDK version 3.3.

Therefore, there is no need to update the minimum Dart SDK version, as you mentioned. If you have any further queries, please feel free to ask.

Best regards,
Praveen Balu.

@LavanyaGowtham2021 LavanyaGowtham2021 added waiting for customer response Cannot make further progress until the customer responds. and removed open Open labels Apr 9, 2025
@LavanyaGowtham2021
Copy link
Collaborator

The minimum Dart version of our Flutter widgets has been updated to 3.7. Hence closing this ticket.

@LavanyaGowtham2021 LavanyaGowtham2021 added solved Solved the query using existing solutions and removed waiting for customer response Cannot make further progress until the customer responds. labels Apr 22, 2025
@syncfusion syncfusion locked as resolved and limited conversation to collaborators Apr 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
date range picker Date range picker component solved Solved the query using existing solutions
Projects
None yet
Development

No branches or pull requests

3 participants