flutter_datetime_picker icon indicating copy to clipboard operation
flutter_datetime_picker copied to clipboard

null safe

Open StanleyCocos opened this issue 2 years ago • 3 comments

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,

StanleyCocos avatar Jul 25 '22 09:07 StanleyCocos

same issue.

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

motucraft avatar Jul 29 '22 07:07 motucraft

@Realank same issue here. It's the only null-safe warning in my app now :/

mikhael28 avatar Aug 01 '22 19:08 mikhael28

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