ErrorSummary('No MediaQuery widget ancestor found.'),에러가 뜹니다..
308
김용해
작성한 질문수 3
0
bool debugCheckHasMediaQuery(BuildContext context) {
assert(() {
if (context.widget is! MediaQuery && context.getElementForInheritedWidgetOfExactType<MediaQuery>() == null) {
throw FlutterError.fromParts(<DiagnosticsNode>[
ErrorSummary('No MediaQuery widget ancestor found.'),
ErrorDescription('${context.widget.runtimeType} widgets require a MediaQuery widget ancestor.'),
context.describeWidget('The specific widget that could not find a MediaQuery ancestor was'),
context.describeOwnershipChain('The ownership chain for the affected widget is'),
ErrorHint(
'No MediaQuery ancestor could be found starting from the context '
'that was passed to MediaQuery.of(). This can happen because you '
'have not added a WidgetsApp, CupertinoApp, or MaterialApp widget '
'(those widgets introduce a MediaQuery), or it can happen if the '
'context you use comes from a widget above those widgets.',
),
]);
}githubs 파일만 가져와서 실행했는데 error가 나오네요..
답변 1
LocationPermission.denied관련 질문입니다
0
588
1
videocontrollor dispose
0
433
1
onlogotap함수의 video nullable관련질문
0
392
1
setState 사용 차이
1
448
1
블로그 웹앱 배포 방법
0
509
1
sizedbox 위젯에 primary = RED_COLOR
1
434
1
개념 강의 순서 질문
0
409
1
materialstateProperty 다른 메소드관련질문
0
418
1
내 노트 모아보기
0
502
1
SafeArea (iPhone, Android)
0
408
1
web view 실행 안됩니다.
0
409
1
랜덤 숫자 생성기 프로젝트 관련
0
539
2
안도르이드 애뮬레이터 질문
0
384
1
super를 사용하는 건, 부모와 자식 클래스의 파라미터 이름이 꼭 같아야하나요?
0
476
1
선생님 flutter device를 크롬으로 했을때 http 통신이 안됩니다..
0
784
1
no element
0
442
1
암호화
0
236
1
책과 강의
0
388
1
voidcallback함수와 클래스내에 변수선언에 관한질문
0
476
1
android studio 세팅
0
482
1
오늘도 출근 세팅하기
2
563
1
재사용 클래스 임폴트 방법
0
485
1
가상화를 못하는 CPU인건가요? 확인 부탁드립니다.
0
401
1
flutter dispose 관련
0
1392
2





