-
Notifications
You must be signed in to change notification settings - Fork 731
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
flutter 3.10 #324
Comments
@ryojiro did the work, in pubspec.yaml change the line |
There are some bugs with this library ( flutter_datetime_picker ) /../../../.pub-cache/hosted/pub.dev/flutter_datetime_picker-1.5.1/lib/flutter_datetime_picker.dart:6:1: Error: 'DatePickerTheme' is imported from both 'package:flutter/src/material/date_picker_theme.dart' and 'package:flutter_datetime_picker/src/datetime_picker_theme.dart'. 'DatePickerTheme' is imported from both is telling us two classes imported into the current file from different packages have the same name. Dart cannot tell which to use, hence the error.
Apply a prefix to one of the packages import 'package:text_widgets/text_widgets.dart' hide TextThemeExt;
import 'dart:math' as math; This is a very common prefix applied to the math library in dart. (So people reading the code understand these are symbols from the math library and not some short variable name in the current file.) Any symbol within the math library now must be prefixed with math to be used. For example: Matrix4.rotationX(math.pi) Matrix4.rotationX(pi) library flutter_datetime_picker; import 'dart:async'; export 'package:flutter_datetime_picker/src/datetime_picker_theme.dart'; |
You can use my forked version (I just migrate it to flutter v3.10)
|
I did all you said but I am facing the following problem for android emulator:
for iOS simulator: |
I found new project, forked this |
We have a fork up and running that's compatible with flutter 3.10 |
@ahmednfwela thanks for your work but please do not just repost other's lib directly to pub by change the lib name. You will force others change their code too, you can just fork and tell how to use it in git. |
@lucasjinreal if pub allowed to publish packages that contain git dependencies, I wouldn't need to do this. there's a lot of form packages that depend on this package. |
This is because of a conflict where we use flutter_datetime_picker: ^1.5.1 (since it has an analysis issue as well). Please Support Flutter |
Please support flutter 3.10.0 .
The text was updated successfully, but these errors were encountered: