1. The following assertion was thrown during performResize
The following assertion was thrown during performResize():
Horizontal viewport was given unbounded height.
Viewports expand in the cross axis to fill their container and constrain their children to match
their extent in the cross axis. In this case, a horizontal viewport was given an unlimited amount of
vertical space in which to expand.
2. The following ProgressEvent object was thrown resolving an image codec
The following ProgressEvent object was thrown resolving an image codec:
[object ProgressEvent]
When the exception was thrown, this was the stack
Image provider:
NetworkImage("https://image-comic.pstatic.net/webtoon/823999/thumbnail/thumbnail_IMAG21_db3ba875-37f1-4d05-a7c9-73d9bb43fc62.jpg",
scale: 1.0)
headers:const {
"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36",
},
2-2. Chrome + Android Mobile
Chrome + Android Mobile νκ²½μμ λͺ¨λ μ΄λ―Έμ§κ° λμ€λλ‘
main.dart > MyHttpOverrides() μΆκ°
classMyHttpOverridesextendsHttpOverrides {
@overrideHttpClientcreateHttpClient(SecurityContext? context) {
returnsuper.createHttpClient(context)
..userAgent ='Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36';
}
}
voidmain() {
HttpOverrides.global =MyHttpOverrides();
runApp(constApp());
}
BoxConstraints forces an infinite width.
These invalid constraints were provided to RenderDecoratedBox's layout() function by the following function, which probably computed the invalid constraints in question:
RenderFractionallySizedOverflowBox.performLayout (package:flutter/src/rendering/shifted_box.dart:1171:14)
The offending constraints were: BoxConstraints(w=Infinity, 0.0<=h<=Infinity)
3-1. Horizontal viewport was given unbounded height
This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: [ν΄λμ€λͺ ].[λ³μλͺ ]
6. The method 'validate' can't be unconditionally invoked ~
The method 'validate' can't be unconditionally invoked because the receiver can be 'null'. Try making the call conditional (using '?.') or adding a null check to the target ('!').
if (!mounted) return;
Navigator.push(
context, (μλ΅)
);
Const μ€λ₯
1. Use 'const' with the constructor
νλ λ°μ€κ³Ό ν¨κ» Use 'const' with the constructor to improve performance. 문ꡬ νμΈ(constant constructor λ const λ₯Ό μ°λ κ±Έ μΆμ²νλ€)