Closed Adr-hyng closed 6 months ago
Possible Fixes:
GoogleFonts.getFont()
method from flutter_flow_theme.dart, use local fonts instead. Possible solution for this. See at Stackoverflow
Reverted back to default fonts to counter this issue. Lemme Know if this resolves this issue
Reverted back to default fonts to counter this issue. Lemme Know if this resolves this issue
Still used GoogleFonts SDK with the default fonts provided by Roboflow. Anyways, just downloaded the fonts from GoogleFonts, and it is located in the "assets/fonts" folder. Somehow, it resolved the issue.
Yet another issue raised with this code snippet from "home_page_widget":
Image.network(
'https://images.unsplash.com/photo-1671865176105-5531335a9c59?crop=entropy&cs=tinysrgb&fit=max&fm=jpg&ixid=M3w0NTYyMDF8MHwxfHNlYXJjaHw5fHxtaXNzJTIwd29ybGR8ZW58MHx8fHwxNzE0ODAwMjIyfDA&ixlib=rb-4.0.3&q=80&w=400',
width:
MediaQuery.sizeOf(context).width *
1.0,
height:
MediaQuery.sizeOf(context).height *
1.043,
fit: BoxFit.cover,
),
this uses internet to load an image, which is not offline-friendly. Anyways, might try to solve this issue.
Error from Terminal:
dart-sdk/lib/async/future_impl.dart 871:13 _propagateToListeners dart-sdk/lib/async/future_impl.dart 651:5 [_completeError] dart-sdk/lib/async/future_impl.dart 737:7 callback dart-sdk/lib/async/schedule_microtask.dart 40:11 _microtaskLoop dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.da rt 181:7
Error: Exception: Failed to load font with url
https://fonts.gstatic.com/s/a/870a3330a3749a6f77ae6869705a
73e7cac177a535bebe60323fc706f632267c.ttf: ClientException:
XMLHttpRequest error.,
uri=https://fonts.gstatic.com/s/a/870a3330a3749a6f77ae6869
705a73e7cac177a535bebe60323fc706f632267c.ttf
dart-sdk/lib/_internal/js_dev_runtime/private/ddcruntime/
errors.dart 297:3 throw
packages/google_fonts/src/google_fonts_base.dart 263:5
dart-sdk/lib/async/zone.dart 1666:54
runBinary
dart-sdk/lib/async/future_impl.dart 177:22
handleError
dart-sdk/lib/async/future_impl.dart 850:46
handleError
dart-sdk/lib/async/future_impl.dart 871:13
_propagateToListeners
dart-sdk/lib/async/future_impl.dart 651:5
[_completeError]
dart-sdk/lib/async/future_impl.dart 737:7
callback
dart-sdk/lib/async/schedule_microtask.dart 40:11
_microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5
_startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.da
rt 181:7
Error: Exception: Failed to load font with url
https://fonts.gstatic.com/s/a/d6416f2670653f40b5d522b959fa
9cef26de93f1eb07383cd74add81cd540223.ttf: ClientException:
XMLHttpRequest error.,
uri=https://fonts.gstatic.com/s/a/d6416f2670653f40b5d522b9
59fa9cef26de93f1eb07383cd74add81cd540223.ttf
dart-sdk/lib/_internal/js_dev_runtime/private/ddcruntime/
errors.dart 297:3 throw
packages/google_fonts/src/google_fonts_base.dart 263:5
dart-sdk/lib/async/zone.dart 1666:54
runBinary
dart-sdk/lib/async/future_impl.dart 177:22
handleError
dart-sdk/lib/async/future_impl.dart 850:46
handleError
dart-sdk/lib/async/future_impl.dart 871:13
_propagateToListeners
dart-sdk/lib/async/future_impl.dart 651:5
[_completeError]
dart-sdk/lib/async/future_impl.dart 737:7
callback
dart-sdk/lib/async/schedule_microtask.dart 40:11
_microtaskLoop
dart-sdk/lib/async/schedule_microtask.dart 49:5
_startMicrotaskLoop
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.da
rt 181:7
_httpFetchFontAndSaveToDevice dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.da rt 60:31
_httpFetchFontAndSaveToDevice dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.da rt 60:31