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 #git
- 인턴 #프론트엔드 #개발자 #프론트엔드개발자 #취준
- unity #2d-game
- flutter #플러터 #분석
- Flutter
- boj #baekjoon #c++
- flutter #app #취준
- flutter #firebase #플러터 #파이어베이스 #연동
- 비주얼 스튜디오 #vs #visual studio
- boj #c++
- firebase #파이어베이스
- baekjoon #백준 #boj
- 백준 #boj
- flutter #상태관리
- 백준
- VS #비주얼스튜디오
- 로컬저장소 #이름변경
- 백준 #boj #baekjoon
- 플러터 #flutter #restful #rest api
- 백준 #c++
- flutter #todolist
- #유데미 #udemy #웅진씽크빅 #스나이퍼팩토리 #인사이드아웃 #미래내일일경험 #프로젝트캠프 #부트캠프 #react #리액트프로젝트 #프론트엔드개발자양성과정 #개발자교육과정
- flutter #플러터
- baekjoon #boj #c++
- flutter #깃
- 유데미 #udemy #웅진씽크빅 #스나이퍼팩토리 #인사이드아웃 #미래내일일경험 #프로젝트캠프 #부트캠프 #react #리액트프로젝트 #프론트엔드개발자양성과정 #개발자교육과
- 비주얼스튜디오 #코드스니펫
- boj #baekjoon
- git #unity #깃허브
- unity #2d-game #minigame #vscode
Archives
- Today
- Total
cococo-coding
[Flutter/Android Studio] None of the files were in this project content 에러 본문
[Flutter] Todolist/트러블슈팅
[Flutter/Android Studio] None of the files were in this project content 에러
_dani 2024. 2. 10. 20:26발생
Refactor> Extract Method를 하는 와중에 다음과 같은 에러가 발생했다.
스택오버플로우에 나온 방법을 시도해봤는데도 계속해서 같은 에러가 발생...
방법
원래는 저렇게 클릭 몇 번으로 쉽게 바뀔 코드인데 결국 일일이 다 바꿔줬다.
바꾼 코드내용이다.
바꿀 때는 괄호짝이나 개수에 주의하자!
import 'package:flutter/material.dart';
import 'package:flutter_todolist_app/constants/colors.dart';
class Home extends StatelessWidget {
const Home({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: toBGColor,
appBar: _buildAppBar(),
body: Container(
child: Text('This is home screen.'),
),
);
}
AppBar _buildAppBar(){
return AppBar(
backgroundColor: toBGColor,
elevation: 0,
title: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Icon(
Icons.menu,
color: toBlack,
size:30,
),
Container(
height: 40,
width: 40,
child: ClipRRect(
borderRadius: BorderRadius.circular(20),
child:Image.asset('assets/images/avatar.jpg'),
),
),
]),
);
}
}
import 'package:flutter_todolist_app/constants/colors.dart';
class Home extends StatelessWidget {
const Home({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: toBGColor,
appBar: _buildAppBar(),
body: Container(
child: Text('This is home screen.'),
),
);
}
AppBar _buildAppBar(){
return AppBar(
backgroundColor: toBGColor,
elevation: 0,
title: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Icon(
Icons.menu,
color: toBlack,
size:30,
),
Container(
height: 40,
width: 40,
child: ClipRRect(
borderRadius: BorderRadius.circular(20),
child:Image.asset('assets/images/avatar.jpg'),
),
),
]),
);
}
}
'[Flutter] Todolist > 트러블슈팅' 카테고리의 다른 글
[Flutter/Android Studio] The selection does not cover a set of statements or an expression. Extend selection to a valid range. (1) | 2024.02.10 |
---|---|
[Flutter/Android Studio] dart파일 import하기 (1) | 2024.02.10 |
[Flutter] 새로운 플러터 프로젝트 만들고 깃 연동하기 (1) | 2024.02.10 |
Too many positional arguments: 0 expected, but 1 found. (1) | 2024.02.10 |
안드로이드 스튜디오에서 main.dart 파일 찾기 (0) | 2024.02.09 |