I have updated my Android Studio to Android Studio Electric Eel | 2022.1.1 Patch 1.
While trying to run my Flutter starter app on Chrome web I got a blank web page with this error.
I have updated my Android Studio to Android Studio Electric Eel | 2022.1.1 Patch 1.
While trying to run my Flutter starter app on Chrome web I got a blank web page with this error.
On
I have fixed this issue by including Roboto font family locally in my project.
fonts:
- family: SomeFont
fonts:
- asset: assets/fonts/SomeFont/SF-Regular.ttf
- family: Roboto # Here
fonts:
- asset: assets/fonts/Roboto/Roboto-Regular.ttf
Also you can use Roboto as fallback font family:
ThemeData(
fontFamilyFallback: const ["Roboto"],
);
I got the same issue while running my flutter project. I used 'flutter run -d chrome' to run it and the issue disappeared.