Compare commits
2 Commits
98488dbcd5
...
0db1f12b40
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0db1f12b40 | ||
|
|
595513b2e6 |
@@ -2,7 +2,4 @@ package com.naturebridgeai.digitalrentmanager
|
|||||||
|
|
||||||
import io.flutter.embedding.android.FlutterActivity
|
import io.flutter.embedding.android.FlutterActivity
|
||||||
|
|
||||||
class MainActivity: FlutterActivity() {
|
class MainActivity: FlutterActivity()
|
||||||
// flutter_sms_inbox 패키지가 SMS 처리를 담당하므로
|
|
||||||
// 기존 MethodChannel 코드는 제거되었습니다
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -35,12 +35,9 @@ const bool enableAdMob = true;
|
|||||||
Future<void> main() async {
|
Future<void> main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
|
||||||
// 시스템 네비게이션 바 숨김 (Immersive Sticky 모드)
|
// Android 15 edge-to-edge 모드 활성화
|
||||||
// 스와이프 시 일시적으로 나타났다가 자동으로 사라짐
|
// 콘텐츠가 시스템 바 영역까지 확장됨
|
||||||
SystemChrome.setEnabledSystemUIMode(
|
SystemChrome.setEnabledSystemUIMode(SystemUiMode.edgeToEdge);
|
||||||
SystemUiMode.immersiveSticky,
|
|
||||||
overlays: [SystemUiOverlay.top], // 상태바만 유지
|
|
||||||
);
|
|
||||||
|
|
||||||
// 구글 모바일 광고 SDK 초기화 (웹이 아니고, Android/iOS에서만)
|
// 구글 모바일 광고 SDK 초기화 (웹이 아니고, Android/iOS에서만)
|
||||||
if (!kIsWeb && (Platform.isAndroid || Platform.isIOS) && enableAdMob) {
|
if (!kIsWeb && (Platform.isAndroid || Platform.isIOS) && enableAdMob) {
|
||||||
|
|||||||
@@ -305,9 +305,9 @@ class AdaptiveTheme {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// 시스템 테마에 따른 상태바 스타일 적용
|
/// 시스템 테마에 따른 상태바 스타일 적용
|
||||||
|
/// Android 15+ edge-to-edge 호환: deprecated된 네비게이션바 색상 API 제거
|
||||||
static void applySystemUIOverlay(BuildContext context) {
|
static void applySystemUIOverlay(BuildContext context) {
|
||||||
final brightness = Theme.of(context).brightness;
|
final brightness = Theme.of(context).brightness;
|
||||||
final isOled = Theme.of(context).scaffoldBackgroundColor == Colors.black;
|
|
||||||
|
|
||||||
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
|
SystemChrome.setSystemUIOverlayStyle(SystemUiOverlayStyle(
|
||||||
statusBarColor: Colors.transparent,
|
statusBarColor: Colors.transparent,
|
||||||
@@ -315,13 +315,8 @@ class AdaptiveTheme {
|
|||||||
brightness == Brightness.dark ? Brightness.light : Brightness.dark,
|
brightness == Brightness.dark ? Brightness.light : Brightness.dark,
|
||||||
statusBarBrightness:
|
statusBarBrightness:
|
||||||
brightness == Brightness.dark ? Brightness.light : Brightness.dark,
|
brightness == Brightness.dark ? Brightness.light : Brightness.dark,
|
||||||
systemNavigationBarColor: isOled
|
// Android 15+: 네비게이션바 색상은 시스템이 자동 처리
|
||||||
? Colors.black
|
systemNavigationBarContrastEnforced: false,
|
||||||
: (brightness == Brightness.dark
|
|
||||||
? const Color(0xFF121212)
|
|
||||||
: Colors.white),
|
|
||||||
systemNavigationBarIconBrightness:
|
|
||||||
brightness == Brightness.dark ? Brightness.light : Brightness.dark,
|
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user