학교별 배포를 위해 서버주소/학교이름을 빌드타임 설정으로 전환

- config.dart의 baseUrl/webVapidKey와 학교 이름을 String.fromEnvironment로 전환
- 기본값은 기존 백산고 값 그대로라 인자 없이 빌드하면 지금과 동일하게 동작
- 다른 학교는 --dart-define=BASE_URL=...=SCHOOL_NAME=...=WEB_VAPID_KEY=...로 빌드
This commit is contained in:
2026-08-06 14:36:10 +09:00
parent 26d143d713
commit f9fa05f817
3 changed files with 24 additions and 8 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ class SchoolAttendanceApp extends StatelessWidget {
Widget build(BuildContext context) {
return MaterialApp(
debugShowCheckedModeBanner: false,
title: '백산고등학교 학생 도우미',
title: '$schoolName 학생 도우미',
theme: ThemeData(primarySwatch: Colors.indigo, useMaterial3: true),
home: const LoginScreen(), // 🚪 앱을 켜면 무조건 로그인 화면이 먼저 등장합니다.
);