Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type mismatches #356

Open
charlieforward9 opened this issue Dec 7, 2024 · 1 comment
Open

Type mismatches #356

charlieforward9 opened this issue Dec 7, 2024 · 1 comment

Comments

@charlieforward9
Copy link

charlieforward9 commented Dec 7, 2024

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)

@barimehdi77
Copy link

I have the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants