Hello my project was running normally until I upgraded the flutter at SDK 3.22.0 and Dart SDK 3.4.0 and the pub get.
When I start debugging I get these errors exactly:
../../../../AppData/Local/Pub/Cache/hosted/pub.dev/rotation_stage-0.0.9/lib/src/rotation_stage_handle.dart:37:44: Error: The getter ‘button’ isn’t defined for the class ‘TextTheme’.
- ‘TextTheme’ is from ‘package:flutter/src/material/text_theme.dart’ (‘/C:/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.of(context).textTheme.button?.copyWith(
^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ‘:app:compileFlutterBuildDebug’.
Process ‘command ‘C:flutterbinflutter.bat” finished with non-zero exit value 1
- Try:
Run with –stacktrace option to get the stack trace.
Run with –info or –debug option to get more log output.
Run with –scan to get full insights.
- Get more help at https://help.gradle.org
Please Help me if you know what i have to do!
i tried some fixes but nothing working.
Antonis Ladianos is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.