My app is not building because of this error and I am not able to understand the error. I tried 'flutter upgrade' and 'flutter get' but nothing was helpful.
Launching lib/main.dart on SM A127F in debug mode...
Running Gradle task 'assembleDebug'...
../../flutter/.pub-cache/hosted/pub.dartlang.org/fwfh_text_style-2.7.3+2/lib/fwfh_text_style.dart:11:7: Error: The non-abstract class 'FwfhTextStyle' is missing implementations for these members:
- TextStyle.fontVariations
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class FwfhTextStyle extends _TextStyleProxy {
^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/painting/text_style.dart:789:33: Context: 'TextStyle.fontVariations' is defined here.
final List<ui.FontVariation>? fontVariations;
^^^^^^^^^^^^^^
FAILURE: Build failed with an exception.
* Where:
Script '/home/vrs/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1159
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command '/home/vrs/flutter/bin/flutter'' 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
BUILD FAILED in 16s
Exception: Gradle task assembleDebug failed with exit code 1
Please try it out by upgrading the dependency flutter pub upgrade fwfh_text_style
After I upgraded to Flutter 3.3.0 this error appearing to me
After some searching I resolved it by run upgrade for packages in my project
flutter pub upgrade
then
flutter clean
flutter pub get
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With