You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
for flutter 2.10, ChipTheme.of(context).labelStyle will return null, but the code uses null check operator ! on it. Consequently, the selected chip cannot be displayed, but the chip list works fine.
Solution:
use an empty TextStyle to avoid null check. final TextStyle defaultLabelStyle = ChipTheme.of(context).labelStyle ?? TextStyle()
flutter version: 2.10.2
The text was updated successfully, but these errors were encountered:
Problem:
for flutter 2.10,
ChipTheme.of(context).labelStyle
will returnnull
, but the code uses null check operator!
on it. Consequently, the selected chip cannot be displayed, but the chip list works fine.Solution:
use an empty
TextStyle
to avoid null check.final TextStyle defaultLabelStyle = ChipTheme.of(context).labelStyle ?? TextStyle()
flutter version: 2.10.2
The text was updated successfully, but these errors were encountered: