일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 간단리뷰
- react
- ios
- VSCode
- TextField
- wrap
- AppBar
- 데스크셋업
- listview
- database
- list
- visualstudiocode
- 데스크테리어
- GitHub
- AppleSilicon
- swift
- Git
- xcode
- Flutter
- 카카오
- error
- 내돈내산
- GetX
- M1
- 춘식
- 라이언
- 플러터
- datetime
- Android
- sqflite
- Today
- Total
목록Flutter (49)
welcome to my blog
main 함수에서 database 셋팅을 먼저 해주고 runApp이 실행되는데 'Null check operator used on a null value'라는 에러가 계속 발생 main 함수 제일 상위에 다음 코드 작성해주었더니 제대로 동작함 WidgetsFlutterBinding.ensureInitialized(); +) 위와같이 했는데도 같은 에러가난다면, binding이 제대로 되었는지 확인해볼것 한쪽에 binding 옵션을 주지 않았더니 같은 에러가 발생했었음 옵션 주지 않고 사용하는 방법이 있는지 확인 필요-> +)바인딩 안해도 사용할 수 있음(GetBuilder 사용하지 않는 위젯은 상관없었음) 참고 : Null Check operator used on a null value on flutte..
에러 : [Get] the improper use of a GetX has been detected. You should only use GetX or Obx for the specific widget that will be updated. If you are seeing this error, you probably did not insert any observable variables into GetX/Obx or insert them outside the scope that GetX considers suitable for an update (example: GetX => HeavyWidget => variableObservable). If you need to update a parent widge..
혼자서 간단하게 테스트코드를 작성할때는 로컬에 저장 git init git add . 두번째 체크표시 (commit) 코멘트 남기고 커밋! 코드 작성하다가 다시 이전버전으로 돌리고싶다면 커밋버튼 -> dart file 우클릭 -> Rollback...
앱 아이콘 설정하기 App Icon Generator https://appicon.co/ App Icon Generator appicon.co 사이트에 들어가서 아이콘을 만들고싶은 이미지를 넣는다. 생성된 이미지 다운로드받기 1. android 설정 : android/app/src/main/res 폴더내에 다운받은 이미지 파일 변경해주기 2. ios 설정 : ios/Runner/Assets.xcassets/AppIcon.appiconset 폴더 내부 이미지 모두 변경 앱 제목 설정하기 1. android 설정 : android/app/src/main/AndroidManifest.xml 에서 android:label 텍스트 수정 2. ios 설정 : ios/Runner/Info.plist 에서 CFBund..
flutter로 개발할 때 안드로이드랑 ios랑 UI가 완전히 똑같이 작성되지않고 조금 다른 부분이 생긴다. 그 한가지 예로 AppBar이다 ios에서는 기본적으로 AppBar를 사용하면 중앙정렬이 되지만, 안드로이드에서는 왼쪽정렬이 default이다 그래서 android에서 중앙정렬로 해주려면 AppBar 속성의 centerTitle 속성을 true로 바꿔주면 된다. AppBar( centerTitle: true, //...생략 ) 그럼 반대로 ios에서 Appbar 타이틀을 왼쪽에 놓고싶다면? centerTitle의 속성을 false로 해주면 된다. AppBar( centerTitle: false, //...생략 )
======== Exception caught by gesture =============================================================== The following assertion was thrown while handling a gesture: No MaterialLocalizations found. ToDoApp widgets require MaterialLocalizations to be provided by a Localizations widget ancestor. The material library uses Localizations to generate messages, labels, and abbreviations. To introduce a Mat..