Type mismatches
Describe the bug
Im not even using the Card or Button component in my app, but when building my application on XCode (Product > Build) using flutter channel master. It crashed.
error: ../../../../../../.pub-cache/hosted/pub.dev/getwidget-4.0.0/lib/components/card/gf_card.dart:118:43: Error: A value of type 'CardThemeData' can't be assigned to a variable of type 'CardTheme'.
- final CardTheme cardTheme = CardTheme.of(context);
+ final CardThemeData cardTheme = CardTheme.of(context);
../../../../../../.pub-cache/hosted/pub.dev/getwidget-4.0.0/lib/components/button/gf_button.dart:579:34: Error: The argument type 'bool?' can't be assigned to the parameter type 'bool' because 'bool?' is nullable and 'bool' isn't.
- enableFeedback: widget.enableFeedback,
+ enableFeedback: widget.enableFeedback ?? false,
Making the changes in the pub-cache myself , I got it to work.
Additional context
Flutter (Channel master, 3.27.0-1.0.pre.740, on macOS 14.5 23F79 darwin-arm64, locale en-US)
I have the same issue
If anyone is having this issue and wants to fix it in the CI, here's a quick script that does that:
sed -i '' 's/enableFeedback: widget\.enableFeedback,/enableFeedback: widget.enableFeedback ?? false,/' "${HOME}/.pub-cache/hosted/pub.dev/getwidget-5.0.0/lib/components/button/gf_button.dart"
gf_button.dart:579:34
We have updated the package.