스크롤 시 파랗게 보이는 진짜 원인 발견 - PWA manifest 기본 파란색 제거
manifest.json의 theme_color/background_color가 Flutter 프로젝트 템플릿의 기본값(#0175C2, Flutter 브랜드 파란색)으로 그대로 남아있었음. Safari가 스크롤 시 툴바 주변을 이 색으로 물들여서 파란 줄이 보인 것. - manifest.json: theme_color를 앱의 ink색(#1C1C1C)으로, background_color를 앱 배경색(#EEF0F2)으로 교체 - index.html에도 <meta name="theme-color">를 명시적으로 추가해 이중으로 보장 Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -19,6 +19,10 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
|
||||||
<meta name="description" content="A new Flutter project.">
|
<meta name="description" content="A new Flutter project.">
|
||||||
|
<!-- 🎨 Safari 등 브라우저가 탭/툴바를 이 색으로 물들이는데, 예전 Flutter 기본 파란색
|
||||||
|
(#0175C2)이 그대로 남아있어서 스크롤 시 파랗게 보였다. 앱 색상으로 교체. -->
|
||||||
|
<meta name="theme-color" content="#1C1C1C">
|
||||||
|
<meta name="msapplication-navbutton-color" content="#1C1C1C">
|
||||||
|
|
||||||
<!-- iOS meta tags & icons -->
|
<!-- iOS meta tags & icons -->
|
||||||
<meta name="mobile-web-app-capable" content="yes">
|
<meta name="mobile-web-app-capable" content="yes">
|
||||||
|
|||||||
+2
-2
@@ -3,8 +3,8 @@
|
|||||||
"short_name": "school_attendance",
|
"short_name": "school_attendance",
|
||||||
"start_url": ".",
|
"start_url": ".",
|
||||||
"display": "standalone",
|
"display": "standalone",
|
||||||
"background_color": "#0175C2",
|
"background_color": "#EEF0F2",
|
||||||
"theme_color": "#0175C2",
|
"theme_color": "#1C1C1C",
|
||||||
"description": "A new Flutter project.",
|
"description": "A new Flutter project.",
|
||||||
"orientation": "portrait-primary",
|
"orientation": "portrait-primary",
|
||||||
"prefer_related_applications": false,
|
"prefer_related_applications": false,
|
||||||
|
|||||||
Reference in New Issue
Block a user