flutter_datetime_picker icon indicating copy to clipboard operation
flutter_datetime_picker copied to clipboard

Theme color error

Open mertcan-tas opened this issue 3 years ago • 6 comments

I got the following error regarding colors in the library.

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

Capture

mertcan-tas avatar Oct 08 '21 17:10 mertcan-tas

I get the same error using Linux as development system.

Flutter is already up to date on channel stable
Flutter 2.5.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 3595343e20 (11 days ago) • 2021-09-30 12:58:18 -0700
Engine • revision 6ac856380f
Tools • Dart 2.14.3

sebastian-schmid avatar Oct 11 '21 12:10 sebastian-schmid

Looks like a duplicate of #269 #253 #239

Solution for now seems to be:

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

sebastian-schmid avatar Oct 11 '21 12:10 sebastian-schmid

We got the same error for months now...

hecker avatar Oct 15 '21 17:10 hecker

Is this repo still maintained?

Aaron-Linkforce avatar Oct 25 '21 07:10 Aaron-Linkforce

Due to author inactivity, I made a fork here https://pub.dev/packages/flutter_datetime_picker_bdaya https://github.com/Bdaya-Dev/flutter_datetime_picker

Feel free to create PRs and file issues until the original author is back

ahmednfwela avatar Oct 29 '21 03:10 ahmednfwela

Is this repo orphaned?

joseph-fox avatar Dec 15 '21 13:12 joseph-fox