From 9adaba10cd18d85e2b17fa563761d5d8f386469e Mon Sep 17 00:00:00 2001 From: sihoo Date: Tue, 4 Aug 2026 00:42:15 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B5=90=EC=82=AC=20=EB=8C=80=EC=8B=9C?= =?UTF-8?q?=EB=B3=B4=EB=93=9C=EC=97=90=20=EC=83=88=EB=A1=9C=EA=B3=A0?= =?UTF-8?q?=EC=B9=A8=20=EB=B2=84=ED=8A=BC=20=EC=B6=94=EA=B0=80=20+=20?= =?UTF-8?q?=EC=9B=B9=20=EB=B0=B0=ED=8F=AC=20=EC=BA=90=EC=8B=9C=20=EB=AC=B4?= =?UTF-8?q?=ED=9A=A8=ED=99=94=20=EC=84=A4=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - TeacherAttendancePage 앱바에 수동 새로고침 버튼 추가 - Firebase Hosting에서 index.html/flutter_service_worker.js/version.json을 no-cache로 설정해서, 재배포 후 브라우저가 예전 버전을 계속 들고 있는 문제 방지 Co-Authored-By: Claude Sonnet 5 --- firebase.json | 2 +- lib/screens/teacher_attendance_page.dart | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/firebase.json b/firebase.json index 5e0e0f9..b4432b7 100644 --- a/firebase.json +++ b/firebase.json @@ -1 +1 @@ -{"flutter":{"platforms":{"android":{"default":{"projectId":"school-display-ff28f","appId":"1:137322214849:android:2595999513206bdeb16b40","fileOutput":"android/app/google-services.json"}},"dart":{"lib/firebase_options.dart":{"projectId":"school-display-ff28f","configurations":{"android":"1:137322214849:android:2595999513206bdeb16b40","web":"1:137322214849:web:0423e5c788d95761b16b40"}}}}},"hosting":{"public":"build/web","ignore":["firebase.json","**/.*"],"rewrites":[{"source":"**","destination":"/index.html"}]}} \ No newline at end of file +{"flutter":{"platforms":{"android":{"default":{"projectId":"school-display-ff28f","appId":"1:137322214849:android:2595999513206bdeb16b40","fileOutput":"android/app/google-services.json"}},"dart":{"lib/firebase_options.dart":{"projectId":"school-display-ff28f","configurations":{"android":"1:137322214849:android:2595999513206bdeb16b40","web":"1:137322214849:web:0423e5c788d95761b16b40"}}}}},"hosting":{"public":"build/web","ignore":["firebase.json","**/.*"],"rewrites":[{"source":"**","destination":"/index.html"}],"headers":[{"source":"/index.html","headers":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"}]},{"source":"/flutter_service_worker.js","headers":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"}]},{"source":"/version.json","headers":[{"key":"Cache-Control","value":"no-cache, no-store, must-revalidate"}]}]}} \ No newline at end of file diff --git a/lib/screens/teacher_attendance_page.dart b/lib/screens/teacher_attendance_page.dart index b62557f..75783dc 100644 --- a/lib/screens/teacher_attendance_page.dart +++ b/lib/screens/teacher_attendance_page.dart @@ -274,6 +274,11 @@ class _TeacherAttendancePageState extends State { foregroundColor: Colors.white, elevation: 0, actions: [ + IconButton( + onPressed: _isLoading ? null : _fetchAll, + icon: const Icon(Icons.refresh_rounded), + tooltip: '새로고침', + ), TextButton.icon( onPressed: _showPermissionWindowDialog, icon: const Icon(Icons.timer_outlined, color: Colors.white),