web 너비 제한

This commit is contained in:
2025-10-25 17:12:32 +09:00
parent 660d4b8136
commit 19f99989b8
4 changed files with 37875 additions and 37845 deletions
+1 -1
View File
@@ -38,6 +38,6 @@ _flutter.buildConfig = {"engineRevision":"d2913632a4578ee4d0b8b1c4a69888c8a0672c
_flutter.loader.load({ _flutter.loader.load({
serviceWorkerSettings: { serviceWorkerSettings: {
serviceWorkerVersion: "2393892022" serviceWorkerVersion: "2795888634"
} }
}); });
+2 -2
View File
@@ -3,11 +3,11 @@ const MANIFEST = 'flutter-app-manifest';
const TEMP = 'flutter-temp-cache'; const TEMP = 'flutter-temp-cache';
const CACHE_NAME = 'flutter-app-cache'; const CACHE_NAME = 'flutter-app-cache';
const RESOURCES = {"flutter_bootstrap.js": "cc9110107e1984aa6cc34f121cf939b7", const RESOURCES = {"flutter_bootstrap.js": "468fc95ee4781b01447444f01fc35a6d",
"version.json": "da93f1b9f56cad7b2866130c73bc1e17", "version.json": "da93f1b9f56cad7b2866130c73bc1e17",
"index.html": "dbf5e70d5dc44d78d9e072817c5b3fa3", "index.html": "dbf5e70d5dc44d78d9e072817c5b3fa3",
"/": "dbf5e70d5dc44d78d9e072817c5b3fa3", "/": "dbf5e70d5dc44d78d9e072817c5b3fa3",
"main.dart.js": "fd15d04a259aa7e62df737ffbe2f83ff", "main.dart.js": "4ae87a0a950b181923e8f9a254640bfe",
"flutter.js": "888483df48293866f9f41d3d9274a779", "flutter.js": "888483df48293866f9f41d3d9274a779",
"favicon.png": "5dcef449791fa27946b3d35ad8803796", "favicon.png": "5dcef449791fa27946b3d35ad8803796",
"icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1", "icons/Icon-192.png": "ac9a721a12bbc803b44f645561ecb1e1",
+37855 -37842
View File
File diff suppressed because one or more lines are too long
+17
View File
@@ -56,6 +56,8 @@ class MyApp extends StatelessWidget {
return MaterialApp( return MaterialApp(
navigatorKey: navigatorKey, // 인증 오류 처리를 위한 전역 네비게이터 키 navigatorKey: navigatorKey, // 인증 오류 처리를 위한 전역 네비게이터 키
title: '볼링 매니저', title: '볼링 매니저',
// 테마 자동 전환 비활성화(항상 라이트 테마)
themeMode: ThemeMode.light,
theme: ThemeData( theme: ThemeData(
colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue), colorScheme: ColorScheme.fromSeed(seedColor: Colors.blue),
useMaterial3: true, useMaterial3: true,
@@ -147,6 +149,21 @@ class MyApp extends StatelessWidget {
Locale('en', 'US'), Locale('en', 'US'),
], ],
locale: const Locale('ko', 'KR'), locale: const Locale('ko', 'KR'),
// 전역 레이아웃 래퍼: 큰 화면에서 최대 폭 제한 및 좌우 패딩 적용
builder: (context, child) {
const double maxWidth = 1200;
return Container(
alignment: Alignment.topCenter,
color: Theme.of(context).colorScheme.background,
child: Padding(
padding: const EdgeInsets.symmetric(horizontal: 16),
child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: maxWidth),
child: child,
),
),
);
},
home: authService.isAuthenticated ? const HomeScreen() : const LoginScreen(), home: authService.isAuthenticated ? const HomeScreen() : const LoginScreen(),
routes: { routes: {
'/login': (context) => const LoginScreen(), '/login': (context) => const LoginScreen(),