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

Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. #2332

Closed
tiagosilas opened this issue Jun 14, 2024 · 3 comments · Fixed by #2339
Closed

Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. #2332

tiagosilas opened this issue Jun 14, 2024 · 3 comments · Fixed by #2339
Assignees

Comments

@tiagosilas
Copy link

../../.pub-cache/hosted/pub.dev/flutter_markdown-0.6.9+1/lib/src/style_sheet.dart:302:34: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.

  • 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../snap/flutter/common/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 'bodyText2'.
    tableBody: theme.textTheme.bodyText2,
    ^^^^^^^^^
    Target kernel_snapshot failed: Exception

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':app:compileFlutterBuildDebug'.

Process 'command '/home/tiago/snap/flutter/common/flutter/bin/flutter'' finished with non-zero exit value 1

  • Try:

Flutter Version:
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (9 days ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3

@domesticmouse
Copy link
Contributor

Which sample is failing to build?

@CraigFoote
Copy link

I'm still getting this. Any ideas?

@domesticmouse
Copy link
Contributor

This was fixed in flutter_markdown 0.6.10+4. Bumping flutter_markdown dependencies to current released version.

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

Successfully merging a pull request may close this issue.

3 participants