Skip to content

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

Open

Description

@devsigofficial

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

Activity

  1. justintoth commented on Jun 10, 2022

    @justintoth

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

  2. aliazxs commented on Jun 20, 2022

    @aliazxs

    me too

  3. justintoth commented on Jun 21, 2022

    @justintoth

    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
    
  4. Abion47 commented on Jun 21, 2022

    @Abion47

    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.

  5. ahmednfwela commented on May 12, 2023

    @ahmednfwela
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions