flutter_datetime_picker
flutter_datetime_picker copied to clipboard
Warning on using this component
/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,
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
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, ^
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...
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