diff --git a/lib/ui/teacher_attendance_page.dart b/lib/ui/teacher_attendance_page.dart index 613159e..5f34682 100644 --- a/lib/ui/teacher_attendance_page.dart +++ b/lib/ui/teacher_attendance_page.dart @@ -205,29 +205,13 @@ class _TeacherAttendancePageState extends State { return Scaffold( backgroundColor: AppPalette.mist, - // πŸͺΆ κ²€μ • λ°°λ„ˆ λŒ€μ‹  κ°€μš΄λ°μ— λ‘₯κ·Ό 제λͺ© μ•Œμ•½λ§Œ λ„μš°κ³ , λ‚˜λ¨Έμ§€ κΈ°λŠ₯은 μ „λΆ€ - // "μžμŠ΅μ‹€ μ‹œκ°„ μ„€μ • 메뉴"(λŸ°μΉ˜νŒ¨λ“œ μŠ€νƒ€μΌ μ˜€λ²„λ ˆμ΄) ν•˜λ‚˜λ‘œ λͺ¨μ€λ‹€. + // πŸͺΆ κ²€μ • λ°°λ„ˆ λŒ€μ‹ , 제λͺ© μ•Œμ•½μ€ "전체 학생 수" λ²„νŠΌ λ°”λ‘œ μœ„(μ‚¬μ΄λ“œλ°”/λͺ¨λ°”일 μš”μ•½ μœ„)에 λ‘”λ‹€. + // λ‚˜λ¨Έμ§€ κΈ°λŠ₯은 μ „λΆ€ "μžμŠ΅μ‹€ μ‹œκ°„ μ„€μ • 메뉴"(λŸ°μΉ˜νŒ¨λ“œ μŠ€νƒ€μΌ μ˜€λ²„λ ˆμ΄) ν•˜λ‚˜λ‘œ λͺ¨μ€λ‹€. // ν°μ—μ„œλŠ” μ‚¬μ΄λ“œλ°”κ°€ μ—†μœΌλ‹ˆ μ—¬κΈ° μ•„μ΄μ½˜μœΌλ‘œλ„ 같은 메뉴λ₯Ό μ—΄ 수 있게 λ‘”λ‹€. appBar: AppBar( backgroundColor: Colors.transparent, foregroundColor: AppPalette.ink, elevation: 0, - centerTitle: true, - title: Container( - padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10), - decoration: BoxDecoration( - color: AppPalette.ink, - borderRadius: BorderRadius.circular(999), - ), - child: const Text( - 'μ‹€μ‹œκ°„ μΆœμ„ ν˜„ν™©', - style: TextStyle( - color: Colors.white, - fontWeight: FontWeight.bold, - fontSize: 15, - ), - ), - ), actions: [ IconButton( icon: const Icon(Icons.more_horiz_rounded), @@ -260,6 +244,26 @@ class _TeacherAttendancePageState extends State { ); } + // πŸͺΆ "μ‹€μ‹œκ°„ μΆœμ„ ν˜„ν™©" 제λͺ© μ•Œμ•½. μ‚¬μ΄λ“œλ°”/λͺ¨λ°”일 μš”μ•½ λ°”λ‘œ μœ„μ— λ‘”λ‹€. + Widget _buildTitlePill() { + return Container( + padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 10), + decoration: BoxDecoration( + color: AppPalette.ink, + borderRadius: BorderRadius.circular(999), + ), + child: const Text( + 'μ‹€μ‹œκ°„ μΆœμ„ ν˜„ν™©', + textAlign: TextAlign.center, + style: TextStyle( + color: Colors.white, + fontWeight: FontWeight.bold, + fontSize: 15, + ), + ), + ); + } + // ----------------------------------------------------------------------- // πŸ“± λͺ¨λ°”일 λ ˆμ΄μ•„μ›ƒ (κΈ°μ‘΄ μΉ΄λ“œ 리슀트) // ----------------------------------------------------------------------- @@ -267,6 +271,9 @@ class _TeacherAttendancePageState extends State { final groups = _controller.studentsByGrade; return Column( children: [ + const SizedBox(height: 12), + _buildTitlePill(), + const SizedBox(height: 12), _buildSummaryCards(total, checkedIn, absent), _buildPermissionBanner(), _buildFilterChips(), @@ -530,6 +537,8 @@ class _TeacherAttendancePageState extends State { child: Column( crossAxisAlignment: CrossAxisAlignment.stretch, children: [ + Center(child: _buildTitlePill()), + const SizedBox(height: 16), _sidebarStatPill('전체 학생 수', total, 'ALL'), const SizedBox(height: 10), _sidebarStatPill('μΆœμ„ 학생 수', checkedIn, 'CHECKED_IN'),