일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- xcode
- AppBar
- database
- 데스크테리어
- 플러터
- GitHub
- Flutter
- 데스크셋업
- listview
- Android
- 간단리뷰
- GetX
- Git
- datetime
- 내돈내산
- react
- wrap
- TextField
- visualstudiocode
- M1
- AppleSilicon
- error
- ios
- swift
- list
- VSCode
- 라이언
- sqflite
- 춘식
- 카카오
- Today
- Total
목록Flutter (45)
welcome to my blog
앱 아이콘 설정하기 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..
현재 시간을 알고싶을 때 DateTime을 사용한다. 하지만 DateTime은 디바이스 로컬 시간을 가져온다는 점 유의하자. var now = DateTime.now(); String today = '${now.year}. ${now.month}. ${now.day}';//2021. 11. 5 now.year -> 년 now.month -> 월 now.day -> 일 UTC시간 : 협정 세계시 utc시간을 얻으려면 ntp라는 라이브러리를 사용하는듯 하다 (추후 사용하게된다면 정리) ListTile의 항목을 꾹 눌렀을 때(long press) 해당 내용을 복사하고싶다면 Clipboard 위젯을 사용한다. +)스낵바를 적용해보았다. ListTile( onLongPress: (){ Clipboard.setDa..
TextField( maxLines: 1, decoration: InputDecoration(border: InputBorder.none, hintText: '무엇이든 입력하세요'), ), TextField의 밑줄 없애는 방법 : decoration : InputDecoration의 border속성을 none으로 설정해준다. hintText : 텍스트필드에 입력하기 전에 어떤 내용을 작성해야하는지 알려주는 기능. 터치하는 순간 사라짐 Container( decoration: const BoxDecoration( image: DecorationImage( image: AssetImage("assets/background.jpg"), fit: BoxFit.fill ) ), ), 배경이미지 설정하는 방법: 먼..
키보드의 완료 버튼을 누르면 기본적으로 키보드가 내려가면서 포커스도 해제되지만, 꼭 완료 버튼을 누르지 않아도 배경을 터치했을 때나 특정 버튼을 눌렀을 때 키보드를 내리고 싶을때가 있다. 텍스트필드의 포커스를 해제시키고 싶을 때 사용할 수 있는 방법! 1. FocusNode 객체를 생성한다. FocusNode textFocus = FocusNode(); 2. TextField 위젯에 생성한 FocusNode를 연결한다. TextField( maxLines: 1, focusNode: widget.textFocus, ) 3. 원하는 이벤트가 발생했을 때 unfocus 해준다. widget.textFocus.unfocus(); 여기서 원하는 이벤트 예시 ---> 텍스트필드가 아닌곳을 선택했을때 혹은 버튼을 눌..