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

The getter 'button' isn't defined for the type 'TextTheme'. #26

Open
mr-gami001 opened this issue May 15, 2024 · 2 comments
Open

The getter 'button' isn't defined for the type 'TextTheme'. #26

mr-gami001 opened this issue May 15, 2024 · 2 comments

Comments

@mr-gami001
Copy link

/C:/Users/admin/AppData/Local/Pub/Cache/hosted/pub.dev/gradient_widgets-0.6.0/lib/src/gradient_widget.dart:104:73: Error: The getter 'button' isn't defined for the class 'TextTheme'.

  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/C:/flutter/packages/flutter/lib/src/material/text_theme.dart').
    Try correcting the name to the name of an existing getter, or defining a getter or field named 'button'.
    final TextStyle textStyleCopy = widget.textStyle ?? theme.textTheme.button!.copyWith(color: Colors.white);

Capture

@gulmensedat
Copy link

I updated the package, you can use my github repo, if you still get errors, let me know and I will fix and update the relevant part.

gradient_widgets:
    git:
      url: https://github.com/gulmensedat/Gradient-Widgets.git
      ref: master

@chandrabezzo
Copy link

Hi @mr-gami001 you can use gradient_widget_plus

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

3 participants