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 class 'TextTheme'. #40

Open
sujianchuan888 opened this issue May 30, 2024 · 1 comment
Open

Comments

@sujianchuan888
Copy link

/C:/Users/h/AppData/Local/Pub/Cache/hosted/pub.dev/flukit-3.0.1/lib/src/gradient_button.dart:63:44: Error: The getter 'button' isn't defined for the class 'TextTheme'.

  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('/E:/dev/flutter_windows_3.19.5-stable/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'.
    style: theme.textTheme.button!.copyWith(

Flutter 3.19.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 300451adae (9 weeks ago) • 2024-03-27 21:54:07 -0500
Engine • revision f6344b75dc
Tools • Dart 3.4.0 • DevTools 2.34.3

@sujianchuan888
Copy link
Author

flutter高版本不兼容
Dart 3.4.0不兼容 降到3.3.3就能编译了

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

1 participant