[flutter] 채팅 목록에서 최종 채팅 시간 보여주기
현재 프로젝트 진행중 채팅 목록이 필요하여 마지막으로 받은 채팅으로부터 얼마나 지났는지 보여주기 위해 개발이 필요한 상황이다. formatDate라는 함수를 만들어 date값을 입력받고 현재 시간과 비교하여 현재 시간이 1분 전인 경우 방금 전으로 표시하고 1시간 이전인 경우엔 ~분전 1일 이전인 경우에는 ~시간 전 1일이 지난 경우에는 날짜를 보여주도록 반환하도록 하였다. String formatDate(DateTime date) { final now = DateTime.now(); final difference = now.difference(date); if (difference.inMinutes < 1) { return '방금 전'; } else if (difference.inHours < 1) {..
IT/모바일
2023. 4. 5. 15:34
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- aws python3.12
- flutter build ipa
- but linking in object file
- NSPrivacyAccessedAPICategorySystemBootTime
- python3.12 설치
- PlatformException(sign_in_failed
- MySQL
- Response: Failure when receiving data from the peer
- NSPrivacyAccessedAPICategoryDiskSpace
- NSPrivacyAccessedAPICategoryUserDefaults
- Flutter
- Error (Xcode): Target release_unpack_ios failed: Exception: Binary
- com.google.android.gms.common.api.ApiException: 10:
- 리눅스 python3 설치
- Failed to launch iOS Simulator: Error: Emulator didn't connect within 60 seconds
- 아이폰
- 해결방법
- NSPrivacyAccessedAPICategoryFileTimestamp
- EC2
- ios 앱 심사상태
- Firebase
- 베란다 수경재배
- ios pod install error
- ios
- 수경재배키트
- ITMS-91053: Missing API declaration
- 슬랙으로 보내기
- google play appcheck
- Xcode
- CDN: trunk URL couldn't be downloaded
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함