akbarpulatov / flutter_awesome_select

Forked from https://github.com/davigmacode/flutter_smart_select, updated legacy code, migrated to null safety and more. AwesomeSelect allows you to easily convert your usual form select or dropdown into dynamic page, popup dialog, or sliding bottom sheet with various choices input such as radio, checkbox, switch, chips, or even custom input. Supports single and multiple choice.
https://pub.dev/packages/awesome_select
MIT License
48 stars 56 forks source link

A value of type 'Color?' can't be assigned to a variable of type 'Color' #26

Closed MartimTSilva closed 2 years ago

MartimTSilva commented 2 years ago

I can't import the package without getting errors. I've migrated my project to null-safety, and now just by importing awesome_select package I get these errors. image

FelipeSamuel commented 2 years ago

some problem

explorova commented 2 years ago

same here

SuperKMan commented 2 years ago

got the same error too.

Saulmarti commented 2 years ago

I have de same error. To resolve it i downgrade the version of Flutter, the problem is with the version 1.10 of Flutter.

explorova commented 2 years ago

I hit this error as soon as I upgraded to flutter 2.10.0. My app is not yet using full null-safety, I suspect flutter 2.10 is forcing, or assuming, something along those lines by default.

explorova commented 2 years ago

Still waiting on map_controller

On 02/06/2022 1:09 AM Vasiliy Ditsyak ***@***.***> wrote:

I hit this error as soon as I upgraded to flutter 2.10.0. My app is not yet using full null-safety, I suspect flutter 2.10 is forcing, or assuming, something along those lines by default.

Why not to migrate to null safety? —Reply to this email directly, view it on GitHub, or unsubscribe.Triage notifications on the go with GitHub Mobile for iOS or Android. You are receiving this because you commented.Message ID: @.***>

WieFel commented 2 years ago

I can't import the package without getting errors. I've migrated my project to null-safety, and now just by importing awesome_select package I get these errors. image

+1 on flutter 2.10.0

Dagmawi-Asfaw-CH commented 2 years ago

i had the same problem when i upgraded to flutter 2.10. it was fixed when I downgraded to version 2.8.1 on stable channel.

youannis-aziz commented 2 years ago

same problem after upgrading

kostas95 commented 2 years ago

Same problem after flutter upgrading

../development/flutter/.pub-cache/hosted/pub.dartlang.org/awesome_select-5.1.0/lib/src/chip_theme.dart:61:38: Error: A value of type 'Color?' can't be assigned to a variable of type 'Color' because 'Color?' is nullable and 'Color' isn't.

  • 'Color' is from 'dart:ui'. final Color primaryColor = color ??

../development/flutter/.pub-cache/hosted/pub.dartlang.org/awesome_select-5.1.0/lib/src/chip_theme.dart:85:63: Error: A value of type 'TextStyle?' can't be assigned to a variable of type 'TextStyle' because 'TextStyle?' is nullable and 'TextStyle' isn't.

  • 'TextStyle' is from 'package:flutter/src/painting/text_style.dart' ('../development/flutter/packages/flutter/lib/src/painting/text_style.dart'). final TextStyle defaultLabelStyle = ChipTheme.of(context).labelStyle; ^ Failed to compile application.
gelintonx commented 2 years ago

Same problem here

oncleguigs commented 2 years ago

Same problem here

powerhai commented 2 years ago

Same problem here + 1

FelipeSamuel commented 2 years ago

change dependence for

awesome_select: git: url: https://github.com/Flutter-Fox/flutter_awesome_select.git ref: hotfix-5.1.0

deddybear commented 2 years ago

hi, someone can help newest update in this repository to pub.dev/packages ? please :(

akbarpulatov commented 2 years ago

Fixed in #27