From 97a2829e01fdfc6ad5587cbe20d342ce119e6dc4 Mon Sep 17 00:00:00 2001 From: Pranshul Date: Sun, 17 Aug 2025 11:15:16 +0530 Subject: [PATCH] updated version closes #557 --- android/app/src/main/AndroidManifest.xml | 22 +- .../GlanceWidgetConfigActivity.kt | 85 + .../GlanceWidgetProvider.kt | 61 + .../app/src/main/res/layout/glance_widget.xml | 80 + .../src/main/res/layout/weather_widget.xml | 1 + .../res/layout/widget_config_activity.xml | 169 + .../src/main/res/values-night-v31/colors.xml | 3 + .../app/src/main/res/values-night/colors.xml | 3 + .../app/src/main/res/values-v31/colors.xml | 2 + android/app/src/main/res/values/colors.xml | 3 + android/app/src/main/res/values/styles.xml | 28 + .../src/main/res/xml/glance_widget_info.xml | 10 + lib/main.dart | 26 +- lib/models/loading_me.dart | 147 +- lib/screens/about_page.dart | 378 +- lib/screens/extended_widgets.dart | 3883 +++++++++-------- lib/screens/home.dart | 39 +- lib/screens/home_location.dart | 148 +- lib/screens/locations.dart | 10 +- lib/screens/searchlocations.dart | 4 +- lib/services/fetch_data.dart | 508 ++- lib/utils/geo_location.dart | 28 - lib/utils/open_links.dart | 10 +- lib/widget_background.dart | 3 + lib/widgets/pollen_card.dart | 2 +- lib/widgets/top_summary_block.dart | 1135 ++--- pubspec.yaml | 2 +- .../.gradle/8.9/fileHashes/fileHashes.lock | Bin 17 -> 17 bytes .../8.9/fileHashes/resourceHashesCache.bin | Bin 21795 -> 21829 bytes .../cxx/create_cxx_tasks_343_timing.txt | 5 + 30 files changed, 3863 insertions(+), 2932 deletions(-) create mode 100644 android/app/src/main/kotlin/com/pranshulgg/weather_master_app/GlanceWidgetConfigActivity.kt create mode 100644 android/app/src/main/kotlin/com/pranshulgg/weather_master_app/GlanceWidgetProvider.kt create mode 100644 android/app/src/main/res/layout/glance_widget.xml create mode 100644 android/app/src/main/res/layout/widget_config_activity.xml create mode 100644 android/app/src/main/res/xml/glance_widget_info.xml create mode 100644 settings_tiles_custom/example/build/app/intermediates/cxx/create_cxx_tasks_343_timing.txt diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 76ae32ac2..c944a9681 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -56,7 +56,7 @@ - + @@ -66,7 +66,7 @@ android:resource="@xml/weather_widget_info" /> - + @@ -76,7 +76,7 @@ android:resource="@xml/weather_widget_info_cast" /> - + @@ -86,7 +86,7 @@ android:resource="@xml/pill_widget_info" /> - + @@ -96,6 +96,20 @@ android:resource="@xml/date_temp_widget_info" /> + + + + + + + + + + (R.id.widget_preview) + + + + val previewClock = findViewById(R.id.preview_text_clock) + val previewDate = findViewById(R.id.preview_date) + val previewTemp = findViewById(R.id.preview_temp) + val previewCondition = findViewById(R.id.preview_condition) + val previewIcon = findViewById(R.id.preview_weather_icon) + + val showClockCheck = findViewById(R.id.showClockCheck) + val sizeSlider = findViewById(R.id.clockSizeSeek) + val sizeText = findViewById(R.id.clockSizeText) + val saveButton = findViewById