在flutter项目中使用最新版本的google_fonts(6.2.0)包时,我遇到了"Type FontFeature not found"问题:
/C:/Users/Dell/AppData/Local/Pub/Cache/hosted/pub.dev/google_fonts-6.2.0/lib/src/google_fonts_base.dart:69:8:
Error: 'FontFeature' isn't a type.
List<FontFeature>? fontFeatures,
^^^^^^^^^^^
Target kernel_snapshot failed: Exception
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\flutter\flutter\bin\flutter.bat'' finished with non-zero exit value 1
我try 降低程序包版本,但问题仍然存在. 我也try 了Flutter 翼清洁和wine 吧获得..