flutter_datetime_picker icon indicating copy to clipboard operation
flutter_datetime_picker copied to clipboard

Warning: Operand of null-aware operation '??' has type 'Color' which excludes null.

Open devsigofficial opened this issue 3 years ago • 5 comments

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

devsigofficial avatar Jun 01 '22 14:06 devsigofficial

Any update on this? I'm encountering the same error after integrating this plugin.

justintoth avatar Jun 10 '22 15:06 justintoth

me too

aliazxs avatar Jun 20 '22 11:06 aliazxs

This was "solved" for me by changing my pubspec entry to the following:

flutter_datetime_picker:
    git:
      url: https://github.com/AlexHartford/flutter_datetime_picker.git
      ref: master

justintoth avatar Jun 21 '22 15:06 justintoth

It's worth noting that, apart from specific functionality that I am not aware of, CupertinoDatePicker in the built-in Flutter library now renders this package obsolete.

Abion47 avatar Jun 21 '22 15:06 Abion47

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