flutter_datetime_picker icon indicating copy to clipboard operation
flutter_datetime_picker copied to clipboard

null safety

Open llTarll opened this issue 3 years ago • 7 comments

Please update this line

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

llTarll avatar Nov 15 '21 08:11 llTarll

yes, Same warning I am getting with version 1.5.1

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

kamalbunkar avatar Nov 18 '21 09:11 kamalbunkar

How do you solve this issue?

keanallen avatar Nov 22 '21 02:11 keanallen

Same warning . Operand of null-aware operation '??' has type 'Color' which excludes null.

sherwin avatar Nov 29 '21 06:11 sherwin

Same warning here, still not fixed

jonasPfeifhofer avatar Dec 09 '21 09:12 jonasPfeifhofer

alternative https://pub.dev/packages/flutter_datetime_picker_bdaya with same code.

febritecno avatar Dec 17 '21 07:12 febritecno

I was using white color for the background so this is what I did: color: Colors.white, Maybe you can do the same cuz it does not change every time.

mikegitdev avatar Jan 05 '22 02:01 mikegitdev

alternative https://pub.dev/packages/flutter_datetime_picker_bdaya with same code.

thanks, it was very annoying to see this issue and to see that the author is inactive.

davidmartinezfl avatar Feb 15 '22 20:02 davidmartinezfl