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

Warning on using this component #289

Open
alarmatwork opened this issue Jan 31, 2022 · 4 comments
Open

Warning on using this component #289

alarmatwork opened this issue Jan 31, 2022 · 4 comments

Comments

@alarmatwork
Copy link

/opt/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.5.1/lib/flutter_datetime_picker.dart:311:32: Warning: Operand of null-aware operation '??' has type 'Color' which excludes null.
 - 'Color' is from 'dart:ui'.
                  color: theme.backgroundColor ?? Colors.white,
@emilmammadov
Copy link

emilmammadov commented Feb 1, 2022

I checked the repo and it seems they fixed that but did not deploy a new version.
You can import the package by git url and last commit hash like below. It will be fixed.

flutter_datetime_picker:
    git:
      url: git://github.com/Realank/flutter_datetime_picker.git
      ref: eb66486c47d50bf550950c196486121ffcea8885

@Mehrankhan-METRA-RGB
Copy link

yes, it shows a warning I am running on flutter web.
../../development/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_datetime_picker-1.5.1/lib/flutter_datetime_picker.dart:311:32: Warning: Operand of null-aware operation '??' has type 'Color' which excludes null.

  • 'Color' is from 'dart:ui'.
    color: theme.backgroundColor ?? Colors.white,
    ^

@tony123S
Copy link

I checked the repo and it seems they fixed that but did not deploy a new version. You can import the package by git url and last commit hash like below. It will be fixed.

flutter_datetime_picker:
    git:
      url: git://github.com/Realank/flutter_datetime_picker.git
      ref: eb66486c47d50bf550950c196486121ffcea8885

The unauthenticated git protocol on port 9418 is no longer supported.
Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
exit code: 128
pub get failed (server unavailable) -- attempting retry 5 in 16 seconds...

@ahmednfwela
Copy link

We have a fork up and running that's compatible with flutter 3.10
https://github.com/Bdaya-Dev/flutter_datetime_picker
https://pub.dev/packages/flutter_datetime_picker_bdaya

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

No branches or pull requests

5 participants