Skip to content

Type mismatches #356

@charlieforward9

Description

@charlieforward9

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions