diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index 8377968..f70a53e 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -6,7 +6,7 @@ plugins { } android { - namespace = "com.derkauzigekoala.hwhub" + namespace = "com.dltw.derkauzigekoala.hwhub" compileSdk = flutter.compileSdkVersion ndkVersion = flutter.ndkVersion @@ -21,7 +21,7 @@ android { defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). - applicationId = "com.derkauzigekoala.hwhub" + applicationId = "com.dltw.derkauzigekoala.hwhub" // You can update the following values to match your application needs. // For more information, see: https://flutter.dev/to/review-gradle-config. minSdk = flutter.minSdkVersion diff --git a/android/app/src/main/kotlin/com/derkauzigekoala/hwhub/MainActivity.kt b/android/app/src/main/kotlin/com/dltw/derkauzigekoala/hwhub/MainActivity.kt similarity index 70% rename from android/app/src/main/kotlin/com/derkauzigekoala/hwhub/MainActivity.kt rename to android/app/src/main/kotlin/com/dltw/derkauzigekoala/hwhub/MainActivity.kt index b6bc733..4745079 100644 --- a/android/app/src/main/kotlin/com/derkauzigekoala/hwhub/MainActivity.kt +++ b/android/app/src/main/kotlin/com/dltw/derkauzigekoala/hwhub/MainActivity.kt @@ -1,4 +1,4 @@ -package com.derkauzigekoala.hwhub +package com.dltw.derkauzigekoala.hwhub import io.flutter.embedding.android.FlutterActivity diff --git a/flutter_01.png b/flutter_01.png new file mode 100644 index 0000000..40efc80 Binary files /dev/null and b/flutter_01.png differ diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 94423af..bbc2b70 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -372,7 +372,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.derkauzigekoala.hwhub; + PRODUCT_BUNDLE_IDENTIFIER = com.dltw.derkauzigekoala.hwhub; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; @@ -388,7 +388,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.derkauzigekoala.hwhub.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.dltw.derkauzigekoala.hwhub.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -405,7 +405,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.derkauzigekoala.hwhub.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.dltw.derkauzigekoala.hwhub.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -420,7 +420,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.derkauzigekoala.hwhub.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.dltw.derkauzigekoala.hwhub.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/Runner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/Runner"; @@ -551,7 +551,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.derkauzigekoala.hwhub; + PRODUCT_BUNDLE_IDENTIFIER = com.dltw.derkauzigekoala.hwhub; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; @@ -573,7 +573,7 @@ "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = com.derkauzigekoala.hwhub; + PRODUCT_BUNDLE_IDENTIFIER = com.dltw.derkauzigekoala.hwhub; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_OBJC_BRIDGING_HEADER = "Runner/Runner-Bridging-Header.h"; SWIFT_VERSION = 5.0; diff --git a/lib/screens/about_screen.dart b/lib/screens/about_screen.dart index 75726b1..1890f57 100644 --- a/lib/screens/about_screen.dart +++ b/lib/screens/about_screen.dart @@ -33,7 +33,6 @@ class _AboutScreenState extends State { @override Widget build(BuildContext context) { final theme = Theme.of(context); - final isDark = theme.brightness == Brightness.dark; final version = _packageInfo != null ? 'v${_packageInfo!.version} (${_packageInfo!.buildNumber})' : '…'; diff --git a/lib/screens/home_shell.dart b/lib/screens/home_shell.dart index 22d4a2b..1a0590e 100644 --- a/lib/screens/home_shell.dart +++ b/lib/screens/home_shell.dart @@ -14,19 +14,22 @@ class HomeShell extends StatefulWidget { class _HomeShellState extends State { int _currentIndex = 0; final _collectionsKey = GlobalKey(); + final _scanKey = GlobalKey(); late final List _pages = [ CollectionsScreen(key: _collectionsKey), - const ScanTab(), + ScanTab(key: _scanKey), const ProfileScreen(), ]; void _onTabSelected(int i) { setState(() => _currentIndex = i); - // Refresh collections whenever user switches to it. if (i == 0) { _collectionsKey.currentState?.refresh(); } + if (i == 1) { + _scanKey.currentState?.refresh(); + } } @override diff --git a/lib/screens/scan_tab.dart b/lib/screens/scan_tab.dart index feaf62c..812ffb2 100644 --- a/lib/screens/scan_tab.dart +++ b/lib/screens/scan_tab.dart @@ -13,10 +13,10 @@ class ScanTab extends StatefulWidget { const ScanTab({super.key}); @override - State createState() => _ScanTabState(); + State createState() => ScanTabState(); } -class _ScanTabState extends State { +class ScanTabState extends State { bool _isBusy = false; List _collections = []; Collection? _selectedCollection; @@ -28,6 +28,9 @@ class _ScanTabState extends State { _loadCollections(); } + /// Public so HomeShell can trigger a refresh when switching to this tab. + void refresh() => _loadCollections(); + Future _loadCollections() async { try { final list = await CollectionService.getMyCollections(); @@ -552,7 +555,7 @@ class _AddCarDialogState extends State<_AddCarDialog> { height: 18, child: CircularProgressIndicator(strokeWidth: 2), ) - : const Text('Add to Collection'), + : const Text('Add'), ), ], ); diff --git a/linux/CMakeLists.txt b/linux/CMakeLists.txt index fbfbf4e..b46c0a5 100644 --- a/linux/CMakeLists.txt +++ b/linux/CMakeLists.txt @@ -7,7 +7,7 @@ project(runner LANGUAGES CXX) set(BINARY_NAME "hwhub") # The unique GTK application identifier for this application. See: # https://wiki.gnome.org/HowDoI/ChooseApplicationID -set(APPLICATION_ID "com.derkauzigekoala.hwhub") +set(APPLICATION_ID "com.dltw.derkauzigekoala.hwhub") # Explicitly opt in to modern CMake behaviors to avoid warnings with recent # versions of CMake. diff --git a/macos/Runner.xcodeproj/project.pbxproj b/macos/Runner.xcodeproj/project.pbxproj index 0f8f2ed..a582a12 100644 --- a/macos/Runner.xcodeproj/project.pbxproj +++ b/macos/Runner.xcodeproj/project.pbxproj @@ -385,7 +385,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.derkauzigekoala.hwhub.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.dltw.derkauzigekoala.hwhub.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/hwhub.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/hwhub"; @@ -399,7 +399,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.derkauzigekoala.hwhub.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.dltw.derkauzigekoala.hwhub.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/hwhub.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/hwhub"; @@ -413,7 +413,7 @@ CURRENT_PROJECT_VERSION = 1; GENERATE_INFOPLIST_FILE = YES; MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.derkauzigekoala.hwhub.RunnerTests; + PRODUCT_BUNDLE_IDENTIFIER = com.dltw.derkauzigekoala.hwhub.RunnerTests; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; TEST_HOST = "$(BUILT_PRODUCTS_DIR)/hwhub.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/hwhub"; diff --git a/macos/Runner/Configs/AppInfo.xcconfig b/macos/Runner/Configs/AppInfo.xcconfig index bf0dd59..db314bd 100644 --- a/macos/Runner/Configs/AppInfo.xcconfig +++ b/macos/Runner/Configs/AppInfo.xcconfig @@ -8,7 +8,7 @@ PRODUCT_NAME = hwhub // The application's bundle identifier -PRODUCT_BUNDLE_IDENTIFIER = com.derkauzigekoala.hwhub +PRODUCT_BUNDLE_IDENTIFIER = com.dltw.derkauzigekoala.hwhub // The copyright displayed in application information PRODUCT_COPYRIGHT = Copyright © 2026 com.example. All rights reserved.