일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- react
- database
- GetX
- error
- 간단리뷰
- 카카오
- GitHub
- swift
- iMac
- sqflite
- Flutter
- Mac
- Git
- wrap
- xcode
- 라이언
- 플러터
- ios
- TextField
- M1
- AppBar
- VSCode
- 춘식
- listview
- AppleSilicon
- list
- visualstudiocode
- 내돈내산
- Android
- datetime
- Today
- Total
목록전체 글 (60)
welcome to my blog
enum enum Device : String { case first = "galaxy" case second = "iphone" } let DeviceDevice = Device.second print("DeviceDevice : \(DeviceDevice)") //DeviceDevice : second print("DeviceDevice : \(DeviceDevice.rawValue)") //DeviceDevice : iphone enum의 값을 알고싶다면 .rawValue 로 접근 enum Market { case fish(name:String) case fruit(name:String) case smartphone(name:String) func getName() -> String { switch..
앱 아이콘 설정하기 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 ) ), ), 배경이미지 설정하는 방법: 먼..