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

Compatibility Issue: bodyText2 is deprecated in TextTheme for Flutter 3.0+ #287

Open
suojae opened this issue Dec 6, 2024 · 0 comments · May be fixed by #288
Open

Compatibility Issue: bodyText2 is deprecated in TextTheme for Flutter 3.0+ #287

suojae opened this issue Dec 6, 2024 · 0 comments · May be fixed by #288

Comments

@suojae
Copy link

suojae commented Dec 6, 2024

image

Error (Xcode): ../../.pub-cache/hosted/pub.dev/flutter_neumorphic-3.2.0/lib/src/widget/container.dart:121:69: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'.


Description

The flutter_neumorphic package is currently using the deprecated bodyText2 property in TextTheme. This causes a build failure with Flutter 3.0 and newer versions, where bodyText2 has been replaced with bodyMedium.

Steps to Reproduce

Install the flutter_neumorphic package (version 3.2.0).
Create a project with Flutter SDK 3.0.0 or later.
Use a Neumorphic widget (e.g., NeumorphicText or NeumorphicContainer) in your application.
Attempt to build the application.

Expected Behavior

The package should build and work seamlessly with the latest Flutter SDK versions.

Actual Behavior

The build fails with the following error:

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

Flutter Doctor

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.5, on macOS 14.5 23F79 darwin-arm64, locale en-KR)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] Connected device (4 available)
    ! Error: Browsing on the local area network for Jonghyuck’s iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network
      as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

• No issues found!
suojae added a commit to suojae/Flutter-Neumorphic that referenced this issue Dec 6, 2024
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

Successfully merging a pull request may close this issue.

1 participant