일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Stream
- provider
- platformexception
- 문법
- globalkey
- consumer
- Swift
- reference
- switch
- changenotifierprovider
- Camera
- borderRadius
- user
- permission
- setstate
- runTransaction
- enum
- Snapshot
- multiprovider
- snackbar
- Firebase
- datetime
- Navigator
- changenotifier
- ListView.builder
- swift 문법
- signout
- transform
- divider
- controller
- Today
- Total
목록datetime (3)
코딩하는 제리

소스코드 및 pubspec.yaml // models/firestore/post_model.dart import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter_project_IJ/constants/firestore_keys.dart'; class PostModel { final String postKey; final String userKey; final String username; final String postImg; // 해당 유저의 userKey를 저장해놓고 likes를 취소할 때 // userKey를 삭제한 후 list의 길이를 사용. final List numOfLikes; final String caption..

소스코드 및 pubspec.yaml // repo/helper/generate_post_key.dart import 'package:flutter_project_IJ/models/firestore/user_model.dart'; // 시간_유저키로 파일명 생성. String getNewPostKey(UserModel userModel) => "${DateTime.now().millisecondsSinceEpoch}_${userModel.userKey}"; // millisecondsSinceEpoch -> UTC의 시간을 밀리초로 가져옴 // screens/share_post_screen.dart import 'dart:io'; import 'package:flutter/material.dart'; cl..

소스코드 및 pubspec.yaml // screens/share_post_screen.dart import 'dart:io'; import 'package:flutter/material.dart'; class SharePostScreen extends StatelessWidget { final File imageFile; const SharePostScreen(this.imageFile, {Key key}) : super(key: key); @override Widget build(BuildContext context) { return Image.file(imageFile); } } // take_photo.dart import 'dart:io'; import 'package:camera/camera...