공부시간에 초단위 표시 + 백품타 출석 인정 기준(1시간) 안내 문구 추가
랭킹, 공부 타이머 통계, 그룹 멤버 카드에 초단위까지 표시하고, 출석 달력/그룹 화면에 "1시간 이상 공부해야 출석 인정" 안내를 추가. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -209,9 +209,12 @@ class _GroupDetailScreenState extends State<GroupDetailScreen> {
|
||||
}
|
||||
|
||||
String _formatMinutes(int seconds) {
|
||||
final m = seconds ~/ 60;
|
||||
if (m < 60) return '$m분';
|
||||
return '${m ~/ 60}시간 ${m % 60}분';
|
||||
final h = seconds ~/ 3600;
|
||||
final m = (seconds % 3600) ~/ 60;
|
||||
final s = seconds % 60;
|
||||
if (h > 0) return '$h시간 $m분';
|
||||
if (m > 0) return '$m분 $s초';
|
||||
return '$s초';
|
||||
}
|
||||
|
||||
void _openTimer() {
|
||||
@@ -412,6 +415,14 @@ class _GroupDetailScreenState extends State<GroupDetailScreen> {
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
'1시간 이상 공부해야 출석으로 표시돼요.',
|
||||
style: TextStyle(
|
||||
fontSize: 11.5,
|
||||
color: Colors.grey[500],
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 10),
|
||||
GridView.builder(
|
||||
shrinkWrap: true,
|
||||
|
||||
Reference in New Issue
Block a user