일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 | 31 |
- 춘식
- error
- 카카오
- Flutter
- sqflite
- datetime
- listview
- Android
- GetX
- list
- AppBar
- 플러터
- 내돈내산
- ios
- visualstudiocode
- Git
- wrap
- Mac
- VSCode
- GitHub
- react
- iMac
- swift
- M1
- database
- TextField
- 라이언
- xcode
- 간단리뷰
- AppleSilicon
- Today
- Total
목록Flutter (45)
welcome to my blog
Flutter로 android release build 하기 flutter build appbundle 명령어를 입력하면 분명 release 폴더에 파일이 생기는데 직접 스토어에 올리려고보면 debug파일이라고 뜨는것이다 !?!?! build variants를 release로 변경하라고 해서 변경도 해줬는데 말이다 결론적으로 앱 번들이 잘못설정되어있었고, 다음과 같은 방식을 적용해보았다. googleplay 스토어에 출시하기 위해서는 앱에 디지털 서명을 해야한다. (2022년부터는 apk말고 appbundle로만 출시가 가능한듯 싶다) 1. keystore 만들기 (mac) keytool -genkey -v -keystore ~/key.jks -keyalg RSA -keysize 2048 -validit..
입력시 []대괄호는 입력하지않음. adb명령어로 apk 파일 설치하기 * 일단 adb 환경변수를 설정해준다. export ANDROID_HOME=[~/Library/Android/sdk] export PATH=$PATH:$ANDROID_HOME/emulator export PATH=$PATH:$ANDROID_HOME/tools export PATH=$PATH:$ANDROID_HOME/tools/bin export PATH=$PATH:$ANDROID_HOME/platform-tools ANDROID_HOME 에는 설치된 SDK의 경로를 넣어준다. 경로 확인하는 방법 : - Android Studio -> Preferences ->Preferences for New Projects -> Appearance ..
분명히 Controller도 binding 시켜주고 obs 선언도 해주었는데 값을 바꾸었을때 연결된 UI가 업데이트가 안되는거다!! 며칠간 삽질했는데 어이없게도 상위위젯을 GetX로 감싸주지않아서 안됐었음..hahahahahahahaahaaaaaa 수정해주니 잘 된다. 원래 소스 : title : Text(widget.itemText, style: widget.isChecked? TextStyle( decoration: TextDecoration.lineThrough, color: Colors.grey, fontSize: controller.fontSize.value.toDouble()) : TextStyle(fontSize: controller.fontSize.value.toDouble()))) 수정된..
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..