flutter_datetime_picker icon indicating copy to clipboard operation
flutter_datetime_picker copied to clipboard

Warning on using this component

Open alarmatwork opened this issue 3 years ago • 4 comments

/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,

alarmatwork avatar Jan 31 '22 13:01 alarmatwork

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

emilmammadov avatar Feb 01 '22 21:02 emilmammadov

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, ^

Mehrankhan-METRA-RGB avatar Feb 17 '22 19:02 Mehrankhan-METRA-RGB

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...

tony123S avatar Mar 18 '22 09:03 tony123S

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

ahmednfwela avatar May 12 '23 11:05 ahmednfwela