From 7ce11fb597352fb6f9a2740602ff36bc0f94e77a Mon Sep 17 00:00:00 2001 From: Felix Kirchner Date: Fri, 18 Apr 2025 20:25:31 +0200 Subject: [PATCH] Added themes.dart --- ios/Runner.xcodeproj/project.pbxproj | 15 ++++++++++++--- .../xcshareddata/xcschemes/Runner.xcscheme | 1 + ios/Runner/Info.plist | 8 ++++---- lib/utility/styles.dart | 2 +- lib/utility/theme.dart | 6 ++++++ lib/views/round_view.dart | 7 ++++--- 6 files changed, 28 insertions(+), 11 deletions(-) create mode 100644 lib/utility/theme.dart diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index a5a0ed4..a4b6a1e 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -362,6 +362,8 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = RJB4MM6RVS; ENABLE_BITCODE = NO; @@ -370,8 +372,9 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.caboCounterApp; + PRODUCT_BUNDLE_IDENTIFIER = com.flixco.caboCounterApp; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; @@ -544,6 +547,8 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = RJB4MM6RVS; ENABLE_BITCODE = NO; @@ -552,8 +557,9 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.caboCounterApp; + PRODUCT_BUNDLE_IDENTIFIER = com.flixco.caboCounterApp; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_VERSION = 5.0; @@ -567,6 +573,8 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_IDENTITY = "Apple Development"; + CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = RJB4MM6RVS; ENABLE_BITCODE = NO; @@ -575,8 +583,9 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.example.caboCounterApp; + PRODUCT_BUNDLE_IDENTIFIER = com.flixco.caboCounterApp; PRODUCT_NAME = "$(TARGET_NAME)"; + PROVISIONING_PROFILE_SPECIFIER = ""; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; VERSIONING_SYSTEM = "apple-generic"; diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index 8e3ca5d..15cada4 100644 --- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -59,6 +59,7 @@ ignoresPersistentStateOnLaunch = "NO" debugDocumentVersioning = "YES" debugServiceExtension = "internal" + enableGPUValidationMode = "1" allowLocationSimulation = "YES"> diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index c120b56..3750f95 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -2,6 +2,8 @@ + CADisableMinimumFrameDurationOnPhone + CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) CFBundleDisplayName @@ -24,6 +26,8 @@ $(FLUTTER_BUILD_NUMBER) LSRequiresIPhoneOS + UIApplicationSupportsIndirectInputEvents + UILaunchStoryboardName LaunchScreen UIMainStoryboardFile @@ -39,9 +43,5 @@ UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight - CADisableMinimumFrameDurationOnPhone - - UIApplicationSupportsIndirectInputEvents - diff --git a/lib/utility/styles.dart b/lib/utility/styles.dart index f69422e..4095d2f 100644 --- a/lib/utility/styles.dart +++ b/lib/utility/styles.dart @@ -2,7 +2,7 @@ import 'package:flutter/cupertino.dart'; abstract class Styles { static Color primaryColor = CupertinoColors.systemGreen; - static Color backgroundColor = Color(0x00014b00); + static Color backgroundColor = Color(0xFF080808); static TextStyle modeTitle = TextStyle( color: primaryColor, diff --git a/lib/utility/theme.dart b/lib/utility/theme.dart new file mode 100644 index 0000000..c7d7e14 --- /dev/null +++ b/lib/utility/theme.dart @@ -0,0 +1,6 @@ +import 'package:flutter/cupertino.dart'; + +Color white = CupertinoColors.white; +Color primaryColor = CupertinoColors.systemGreen; +Color backgroundColor = const Color(0xFF080808); +Color backgroundTintColor = CupertinoColors.darkBackgroundGray; diff --git a/lib/views/round_view.dart b/lib/views/round_view.dart index 97a8aa9..e365798 100644 --- a/lib/views/round_view.dart +++ b/lib/views/round_view.dart @@ -1,5 +1,6 @@ import 'package:cabo_counter/data_classes/game_session.dart'; import 'package:cabo_counter/utility/styles.dart'; +import 'package:cabo_counter/utility/theme.dart' as theme; import 'package:flutter/cupertino.dart'; import 'package:flutter/services.dart'; @@ -198,9 +199,9 @@ class _RoundViewState extends State { left: 0, right: 0, child: Container( - height: 80, // Höhe der Bar - decoration: const BoxDecoration( - color: CupertinoColors.darkBackgroundGray, + height: 80, + decoration: BoxDecoration( + color: theme.backgroundTintColor, ), child: Padding( padding: const EdgeInsets.fromLTRB(0, 0, 0, 20),