Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- flutter오류#flutter#flutter초기세팅
- animatorcontroller
- 마이크작동안됨
- 마이크작동
- notion
- 유니티
- 깃허브 커밋
- 노션으로 가계부쓰기
- 노션꿀팁
- button onclick
- 1인 게임개발
- 깃허브
- 노션활용
- RPG게임
- 노션관계형
- unity
- props
- button
- Relation
- 깃허브 #깃명령어
- 블루투스마이크
- 노션가계부
- unrelated histories
- React
- 깃허브오류
- JSX
- 노션
- 갤럭지버즈+
- 커밋
Archives
- Today
- Total
광산김가네
[Flutter] No MaterialQuery widget ancestor found 오류 해결 본문
TIL(Today I Learn)
[Flutter] No MaterialQuery widget ancestor found 오류 해결
어둠의 그림자 2022. 8. 11. 03:23
해당 코드
티스토리는 dart를 지원해달라
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('글쓰기'),
),
body: Column(
children: [
평소 build함수에 최상단에 Scaffold를 써도 별 문제없이 잘 개발해왔는데
저렇게 뜨니까 넘 황당했다
알고보니 여태까지 항상 main.dart는 거의 안건들이고 main.dart에 연결된 파일들을 수정하느라 잊고있었다..
entry point인 main.dart에 있는 MyApp 컴포넌트는 무조건
MaterialApp이 감싸고있어야한다.
해결된코드
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text('글쓰기'),
),
body: Column(
children: [
'TIL(Today I Learn)' 카테고리의 다른 글
[모각코] ReactJS 프로젝트 시작하기(1) - 기능,UI/UX 구체화 (0) | 2022.08.15 |
---|---|
[모각코] ReactJS 시작하기(완) - Effects | 데이터 문서화 (0) | 2022.08.12 |
[모각코]React 시작하기(6)_create-react-app (0) | 2022.08.06 |
[모각코]ReactJS 시작하기(5)_props (0) | 2022.08.05 |
[모각코]ReactJS 시작하기(4)_state 함수,props까지 (0) | 2022.08.01 |