diff --git a/android/app/src/main/res/drawable-hdpi/splash.png b/android/app/src/main/res/drawable-hdpi/splash.png
new file mode 100644
index 0000000..0f058c0
Binary files /dev/null and b/android/app/src/main/res/drawable-hdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-mdpi/splash.png b/android/app/src/main/res/drawable-mdpi/splash.png
new file mode 100644
index 0000000..9668894
Binary files /dev/null and b/android/app/src/main/res/drawable-mdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-v21/background.png b/android/app/src/main/res/drawable-v21/background.png
new file mode 100644
index 0000000..8e21404
Binary files /dev/null and b/android/app/src/main/res/drawable-v21/background.png differ
diff --git a/android/app/src/main/res/drawable-v21/launch_background.xml b/android/app/src/main/res/drawable-v21/launch_background.xml
index f74085f..3cc4948 100644
--- a/android/app/src/main/res/drawable-v21/launch_background.xml
+++ b/android/app/src/main/res/drawable-v21/launch_background.xml
@@ -1,12 +1,9 @@
-
-
-
-
-
+ -
+
+
+ -
+
+
diff --git a/android/app/src/main/res/drawable-xhdpi/splash.png b/android/app/src/main/res/drawable-xhdpi/splash.png
new file mode 100644
index 0000000..341554c
Binary files /dev/null and b/android/app/src/main/res/drawable-xhdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-xxhdpi/splash.png b/android/app/src/main/res/drawable-xxhdpi/splash.png
new file mode 100644
index 0000000..e39e843
Binary files /dev/null and b/android/app/src/main/res/drawable-xxhdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable-xxxhdpi/splash.png b/android/app/src/main/res/drawable-xxxhdpi/splash.png
new file mode 100644
index 0000000..0464e12
Binary files /dev/null and b/android/app/src/main/res/drawable-xxxhdpi/splash.png differ
diff --git a/android/app/src/main/res/drawable/background.png b/android/app/src/main/res/drawable/background.png
new file mode 100644
index 0000000..8e21404
Binary files /dev/null and b/android/app/src/main/res/drawable/background.png differ
diff --git a/android/app/src/main/res/drawable/launch_background.xml b/android/app/src/main/res/drawable/launch_background.xml
index 304732f..3cc4948 100644
--- a/android/app/src/main/res/drawable/launch_background.xml
+++ b/android/app/src/main/res/drawable/launch_background.xml
@@ -1,12 +1,9 @@
-
-
-
-
-
+ -
+
+
+ -
+
+
diff --git a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png
index db77bb4..8cde96e 100644
Binary files a/android/app/src/main/res/mipmap-hdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png
index 17987b7..d869d94 100644
Binary files a/android/app/src/main/res/mipmap-mdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png
index 09d4391..6da61c4 100644
Binary files a/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
index d5f1c8d..0cdbe2a 100644
Binary files a/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
index 4d6372e..0114338 100644
Binary files a/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png and b/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/android/app/src/main/res/values-night-v31/styles.xml b/android/app/src/main/res/values-night-v31/styles.xml
new file mode 100644
index 0000000..5fef228
--- /dev/null
+++ b/android/app/src/main/res/values-night-v31/styles.xml
@@ -0,0 +1,19 @@
+
+
+
+
+
+
+
diff --git a/android/app/src/main/res/values-night/styles.xml b/android/app/src/main/res/values-night/styles.xml
index 06952be..dbc9ea9 100644
--- a/android/app/src/main/res/values-night/styles.xml
+++ b/android/app/src/main/res/values-night/styles.xml
@@ -5,6 +5,10 @@
- @drawable/launch_background
+ - false
+ - false
+ - false
+ - shortEdges
+
+
+
+
diff --git a/android/app/src/main/res/values/styles.xml b/android/app/src/main/res/values/styles.xml
index cb1ef88..0d1fa8f 100644
--- a/android/app/src/main/res/values/styles.xml
+++ b/android/app/src/main/res/values/styles.xml
@@ -5,6 +5,10 @@
- @drawable/launch_background
+ - false
+ - false
+ - false
+ - shortEdges
- NSPhotoLibraryUsageDescription
- 이 앱이 사진 라이브러리에 접근할 수 있도록 허용합니다.
-
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleDisplayName
+ 올스코어
+ CFBundleExecutable
+ $(EXECUTABLE_NAME)
+ CFBundleIdentifier
+ $(PRODUCT_BUNDLE_IDENTIFIER)
+ CFBundleInfoDictionaryVersion
+ 6.0
+ CFBundleName
+ allscore_app
+ CFBundlePackageType
+ APPL
+ CFBundleShortVersionString
+ $(FLUTTER_BUILD_NAME)
+ CFBundleSignature
+ ????
+ CFBundleVersion
+ $(FLUTTER_BUILD_NUMBER)
+ LSRequiresIPhoneOS
+
+ UILaunchStoryboardName
+ LaunchScreen
+ UIMainStoryboardFile
+ Main
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ CADisableMinimumFrameDurationOnPhone
+
+ UIApplicationSupportsIndirectInputEvents
+
+ GADApplicationIdentifier
+ ca-app-pub-3151339278746301~1689299887
+
+ NSPhotoLibraryUsageDescription
+ 이 앱이 사진 라이브러리에 접근할 수 있도록 허용합니다.
+ UIStatusBarHidden
+
+
diff --git a/lib/config/config.dart b/lib/config/config.dart
index abea696..f7aef9d 100644
--- a/lib/config/config.dart
+++ b/lib/config/config.dart
@@ -1,4 +1,8 @@
class Config {
+ // 테스트 광고 단위 ID
static const String testAdUnitId = 'ca-app-pub-3940256099942544/6300978111';
+ // 실제 광고 단위 ID
static const String realAdUnitId = 'ca-app-pub-3940256099942544/6300978111';
+ // 서버 주소
+ static const String baseUrl = 'https://eldsoft.com:8097';
}
\ No newline at end of file
diff --git a/lib/dialogs/survey_dialog.dart b/lib/dialogs/survey_dialog.dart
index c45e744..ee0bf1e 100644
--- a/lib/dialogs/survey_dialog.dart
+++ b/lib/dialogs/survey_dialog.dart
@@ -1,37 +1,20 @@
import 'package:flutter/material.dart';
import 'package:shared_preferences/shared_preferences.dart';
-
-// 예시: 설문 참여 버튼을 눌렀을 때 이동할 임시 설문 페이지
-// 실제 구현에서는 SurveyPage를 만들어 사용하시면 됩니다.
-class SurveyPage extends StatelessWidget {
- const SurveyPage({Key? key}) : super(key: key);
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- appBar: AppBar(
- title: const Text('임시 설문 페이지'),
- backgroundColor: Colors.black,
- ),
- body: const Center(
- child: Text('여기는 설문 페이지입니다 (임시).'),
- ),
- );
- }
-}
+import '../survey/survey_page.dart';
/// 팝업(모달) 자체를 보여주는 함수
-Future showSurveyDialog(BuildContext context) async {
+Future showSurveyDialog(BuildContext context, String nickname) async {
showDialog(
context: context,
barrierDismissible: false, // 바깥 영역 터치로 닫기 방지
- builder: (_) => const SurveyDialog(),
+ builder: (_) => SurveyDialog(nickname: nickname),
);
}
/// 실제 AlertDialog 형태의 위젯
class SurveyDialog extends StatefulWidget {
- const SurveyDialog({Key? key}) : super(key: key);
+ final String nickname;
+ const SurveyDialog({Key? key, required this.nickname}) : super(key: key);
@override
State createState() => _SurveyDialogState();
@@ -99,7 +82,7 @@ class _SurveyDialogState extends State {
// 임시 설문 페이지로 이동
Navigator.push(
context,
- MaterialPageRoute(builder: (_) => const SurveyPage()),
+ MaterialPageRoute(builder: (_) => SurveyPage(nickname: widget.nickname)),
);
},
style: TextButton.styleFrom(backgroundColor: Colors.black),
diff --git a/lib/plugins/api.dart b/lib/plugins/api.dart
index 0a31c48..447ca83 100644
--- a/lib/plugins/api.dart
+++ b/lib/plugins/api.dart
@@ -2,9 +2,10 @@ import 'package:http/http.dart' as http;
import 'package:shared_preferences/shared_preferences.dart';
import 'dart:convert';
import 'package:image_picker/image_picker.dart';
+import '../config/config.dart';
class Api {
- static const String baseUrl = 'https://eldsoft.com:8097';
+ static const String baseUrl = Config.baseUrl;
// 사용자 정보를 업데이트하는 메서드
static Future