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

ios build error after upgrade to Flutter 3.10 ( 'textTheme' isn't defined for the class 'AppBarTheme'.) #126619

Closed
2 tasks done
fullflash opened this issue May 11, 2023 · 5 comments
Labels
r: invalid Issue is closed as not valid

Comments

@fullflash
Copy link

fullflash commented May 11, 2023

Is there an existing issue for this?

Steps to reproduce

after upgrading to flutter 3.10 unable to build for ios

Actual results

Failed to build iOS app
Error (Xcode): ../../../../../.pub-cache/hosted/pub.dev/flutter_neumorphic-3.2.0/lib/src/widget/app_bar.dart:183:29: Error: The getter 'textTheme' isn't defined for the class 'AppBarTheme'.

Logs

Logs
<!-- Paste your logs here -->

Flutter Doctor output

Doctor output
flutter doctor -v
[✓] Flutter (Channel stable, 3.10.0, on macOS 13.3.1 22E261 darwin-x64, locale en-TR)
    • Flutter version 3.10.0 on channel stable at /Users/*****/SDK_all/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 84a1e904f4 (2 days ago), 2023-05-09 07:41:44 -0700
    • Engine revision d44b5a94c9
    • Dart version 3.0.0
    • DevTools version 2.23.1

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
    • Android SDK at /Users/*******/Library/Android/sdk
    • Platform android-33, build-tools 33.0.1
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 14E222b
    • CocoaPods version 1.11.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2022.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b802.4-9586694)

[✓] VS Code (version 1.78.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.64.0

[✓] Connected device (3 available)
    • iPhone 14 Pro Max (mobile) • E25B3542-E984-48E8-87BA-BA53223E2924 • ios            •
      com.apple.CoreSimulator.SimRuntime.iOS-16-4 (simulator)
    • macOS (desktop)            • macos                                • darwin-x64     •
      macOS 13.3.1 22E261 darwin-x64
    • Chrome (web)               • chrome                               • web-javascript •
      Google Chrome 113.0.5672.92

[✓] Network resources
    • All expected network resources are available.

• No issues found!

tried flutter pub cache repair also deleting .pubcache folder and redownloading flutter

also tried
https://github.com/flutter/flutter/wiki/Workarounds-for-common-issues#flutter-installation-corrupted

@fullflash
Copy link
Author

had to downgrade to flutter 3.7.5

@kishan-dhankecha
Copy link
Contributor

This is not an error. textTheme property from AppBarTheme was mark as deprecated and has been removed from this new release [3.10].

textTheme has been removed, and is replaced by either toolbarTextStyle or titleTextStyle.

Read more here.

@danagbemava-nc danagbemava-nc added the in triage Presently being triaged by the triage team label May 12, 2023
@danagbemava-nc
Copy link
Member

Hi @fullflash, the issue is caused by flutter_neumorphic. It is using an API that has been removed. See Idean/Flutter-Neumorphic#275

Closing from here as this is not a flutter issue.

Thank you

@danagbemava-nc danagbemava-nc closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2023
@danagbemava-nc danagbemava-nc added r: invalid Issue is closed as not valid and removed in triage Presently being triaged by the triage team labels May 12, 2023
@fullflash
Copy link
Author

Hi @fullflash, the issue is caused by flutter_neumorphic. It is using an API that has been removed. See Idean/Flutter-Neumorphic#275

Closing from here as this is not a flutter issue.

Thank you

Thanks @danagbemava-nc you are correct it was related to flutter_neumorphic plugin. and there is no textTheme in our app we migrate it already.

@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
r: invalid Issue is closed as not valid
Projects
None yet
Development

No branches or pull requests

3 participants