Skip to content

Warning on using this component #289

Open

Description

@alarmatwork
/opt/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,

Activity

  1. emilmammadov commented on Feb 1, 2022

    @emilmammadov

    I checked the repo and it seems they fixed that but did not deploy a new version.
    You can import the package by git url and last commit hash like below. It will be fixed.

    flutter_datetime_picker:
        git:
          url: git://github.com/Realank/flutter_datetime_picker.git
          ref: eb66486c47d50bf550950c196486121ffcea8885
    
  2. Mehrankhan-METRA-RGB commented on Feb 17, 2022

    @Mehrankhan-METRA-RGB

    yes, it shows a warning I am running on flutter web.
    ../../development/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,
      ^
  3. tony123S commented on Mar 18, 2022

    @tony123S

    I checked the repo and it seems they fixed that but did not deploy a new version. You can import the package by git url and last commit hash like below. It will be fixed.

    flutter_datetime_picker:
        git:
          url: git://github.com/Realank/flutter_datetime_picker.git
          ref: eb66486c47d50bf550950c196486121ffcea8885
    

    The unauthenticated git protocol on port 9418 is no longer supported.
    Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information.
    exit code: 128
    pub get failed (server unavailable) -- attempting retry 5 in 16 seconds...

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