Michelphoenix98 / flutter_survey

MIT License
14 stars 14 forks source link

An error occurs when building flutter_survey-0.1.4 with Flutter version 3.22.0 on channel stable. #14

Open TakaTeke opened 1 month ago

TakaTeke commented 1 month ago

Hello. I am creating a survey system using flutter_survey-0.1.4. This time I upgraded to Flutter version 3.22.0 on channel stable. When I built the application, I got the following error and could not build it.

Error message ../../../../.pub-cache/hosted/pub.dev/flutter_survey-0.1.4/lib/src/widgets/question_card.dart:56:62: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'.

Please take measures to build successfully with Flutter version 3.22.0 on channel stable. I know you are busy, but I appreciate your understanding.

The flutter_survey package has a sophisticated survey form that is easy to answer and easy to use. I'm creating a consistent system from creating and distributing questions to aggregating responses and charting results, so your flutter_survey package has an important place. We appreciate your prompt response.

I have attached flutter doctor below.

flutter doctor /Users/taka/development/flutter/bin/flutter doctor --verbose [✓] Flutter (Channel stable, 3.22.0, on macOS 14.4.1 23E224 darwin-arm64, locale ja-JP) • Flutter version 3.22.0 on channel stable at /Users/taka/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 5dcb86f68f (10 days ago), 2024-05-09 07:39:20 -0500 • Engine revision f6344b75dc • Dart version 3.4.0 • DevTools version 2.34.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3) • Android SDK at /Users/taka/Library/Android/sdk • Platform android-34, build-tools 30.0.3 • 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 15.2) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15C500b • CocoaPods version 1.15.2

[✓] 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.89.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension can be installed from: 🔨 https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter

[✓] Connected device (3 available) • macOS (desktop) • macos • darwin-arm64 • macOS 14.4.1 23E224 darwin-arm64 • Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.4.1 23E224 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.208

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

• No issues found! Process finished with exit code 0

myomv100 commented 1 month ago

Same issue here. Solved by commeting that line out:

//style: Theme.of(context).textTheme.bodyText1
Michelphoenix98 commented 1 month ago

My apologies fellow devs. It’s been so long since I’ve updated this package. I built this while I was in Uni. Haven’t had time to maintain it ever since. I’ll do my best to find time to fix these issues. But of course, if you can contribute in anyway, that’d be amazing.

MarcENSC commented 2 weeks ago

Hello, I have done a pull request to fix the issue with body large :

In the last version of flutter ( on the date of this document) bodytext1 has been deprecated and should use bodylarge instead. source : https://api.flutter.dev/flutter/material/TextTheme/bodyText1.html

If this isn't changed in the package, you can still fork the package on your own repo, solve the issue and use your own forked version of the package in your flutter app this way : dependencies: some_package: git: url: https://github.com/your-username/the-package.git. // the package on your repo ref: master # Or a specific branch/tag/commit

Thank you,