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

Bug in when running flutter build ios --release #28

Closed kendall-lu closed 2 years ago

kendall-lu commented 2 years ago
/Users/distiller/.pub-cache/hosted/pub.dartlang.org/awesome_select-5.0.3/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 ??
                                         ^
    /Users/distiller/.pub-cache/hosted/pub.dartlang.org/awesome_select-5.0.3/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' ('../flutter/packages/flutter/lib/src/painting/text_style.dart').
        final TextStyle defaultLabelStyle = ChipTheme.of(context).labelStyle;

Above errors are thrown in a CI MacOS image. I've tried the build w/ all available versions and still receive this issue, any idea how to fix this?

kendall-lu commented 2 years ago

looks like https://github.com/akbarpulatov/flutter_awesome_select/pull/27#issue-1124332352 will fix this issue. going to approve.

kendall-lu commented 2 years ago

closing as per reference of PR https://github.com/akbarpulatov/flutter_awesome_select/pull/25