일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 코테공부
- 기술공부
- nestjs스터디
- Kafka
- 플러터 공부
- 스프링부트공부
- 자바공부
- JPA
- nestjs공부
- 스프링
- querydsl
- 스프링부트
- JPA 공부
- 자료구조공부
- 스프링 공부
- Flutter
- DDD
- 코테준비
- JPA스터디
- 플러터 개발
- K8S
- 카프카
- JPA공부
- 스프링공부
- Axon framework
- JPA예제
- 기술면접공부
- 프로그래머스
- 알고리즘공부
- nestjs
- Today
- Total
목록SharedPreferences flutter (2)
DevBoi
1. 슬라이드로 밀면 삭제되는 위젯은 Dismissed 로 감싸주면 된다. 기존 소스에서 아래로 바꿨다. child: Dismissible( key: UniqueKey(), onDismissed: (direction) { if(list.length == 1){ list = []; } else { list.removeAt(index); } memoInterface.saveList(list); }, child: Container( height: 80, margin: const EdgeInsets.symmetric( horizontal: 16, vertical: 4, ), decoration: BoxDecoration( color: list[index].completeYn == "N" ? Colors .blu..
1. 의존성 추가 shared_preferences: ^2.2.0 2. 텍스트 받을 위젯 세팅 final _contentEditController = TextEditingController(); child: TextField( controller: _contentEditController, style: TextStyle(color: Colors.black), decoration: InputDecoration( border: InputBorder.none, hintText: '메모를 입력해주세요', hintStyle: TextStyle(color: Colors.grey[300])), cursorColor: Colors.blue, ), 3. 인스턴스 초기화 (대부분 State단에서 선언) final Futu..