When i install the google fonts package and i import it, i run the code but i get a particular error that make me to be confuse.
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/google_fonts-4.0.3/lib/src/google_fonts_base.dart:317:42: Error: 'Uint8List' isn't a type. bool _isFileSecure(GoogleFontsFile file, Uint8List bytes) { ^^^^^^^^^
CodePudding user response:
It seems that there is a missing import for the Uint8List type in the file google_fonts_base.dart. Try adding the following import statement at the top of the file:
import 'dart:typed_data';
or try to install previous versions of google_fonts package