MASTER CONTROL 프로필 배너 아이콘이 다크 테마에서 안 보이던 문제 수정

AppPalette.linen(아이콘 동그라미 배경)이 템플릿 테마에 따라 전역으로
바뀌는데, 이 배너의 아이콘 색(theme.color)은 role 고정값이라 테마를
안 따라갔다. 갤럭시처럼 linen이 어두운 색으로 바뀌는 다크 테마에서는
어두운 아이콘이 어두운 배경 위에 그려져서 뭉개져 보였다. _buildModernCard
타일과 같은 방식으로 동그라미 배경(surfaceAlt)과 아이콘 색(accent)을
짝지어 테마와 무관하게 항상 대비가 유지되게 했다.

(login_controller.dart의 주석은 사장님이 IDE에서 직접 남긴 메모)
This commit is contained in:
2026-10-03 07:01:02 +00:00
parent 2dd943d2fa
commit 01a5d2014a
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import 'package:flutter/foundation.dart' show ChangeNotifier, kIsWeb;
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
import 'package:firebase_messaging/firebase_messaging.dart'; import 'package:firebase_messaging/firebase_messaging.dart';
import '../config.dart'; import '../config.dart';
//b3135bd8309afe5c 선생님 회원가입 코드
enum LoginOutcome { masterSuccess, needsPasswordChange, success, error } enum LoginOutcome { masterSuccess, needsPasswordChange, success, error }
/// 로그인 시도 결과. UI는 [outcome]만 보고 어떤 화면/다이얼로그를 띄울지 분기한다. /// 로그인 시도 결과. UI는 [outcome]만 보고 어떤 화면/다이얼로그를 띄울지 분기한다.
+4 -2
View File
@@ -730,11 +730,13 @@ class _MainDashboardState extends State<MainDashboard> {
), ),
child: CircleAvatar( child: CircleAvatar(
radius: 22, radius: 22,
backgroundColor: AppPalette.linen, backgroundColor:
_equippedTheme?.surfaceAlt ??
AppPalette.linen,
child: Icon( child: Icon(
theme.icon, theme.icon,
size: 22, size: 22,
color: theme.color, color: _equippedTheme?.accent ?? theme.color,
), ),
), ),
), ),