Skip to content

feat(weather): add medium and large iOS weather widgets - #582

Merged
whes1015 merged 18 commits into
mainfrom
feat/ios-widget-weather-families
Oct 10, 2026
Merged

whes1015 merged 18 commits into
mainfrom
feat/ios-widget-weather-families

Conversation

@YinCheng0106

@YinCheng0106 YinCheng0106 commented Sep 26, 2026 •

Copy link
Copy Markdown
Member

這個 PR 做了什麼

新增 iOS 天氣小工具的 Medium 與 Large 尺寸,依照不同 Widget family 調整資訊層級與版面配置,讓使用者可以在主畫面查看更多目前天氣與預報資訊。

Small Widget 維持精簡的目前天氣資訊;Medium 與 Large Widget 則利用額外空間呈現更多天氣內容。

相關 issue

  • 無

怎麼驗

  • 在 iOS 實體裝置加入 Small、Medium、Large 三種天氣小工具。
  • 確認三種尺寸皆可正常顯示目前選擇地點的天氣資訊。
  • 確認 Medium / Large Widget 的內容、間距與文字沒有 clipping、重疊或超出邊界。
  • 分別測試「所在地」與 DPIP 已儲存地點,確認不同 Widget instance 可正常顯示對應地點。
  • 確認天氣狀態、圖示與相關文字可正常顯示。
  • 確認繁體中文介面顯示正常。
  • Small、Medium、Large 均已於實體裝置完成 UI 驗證。

UI 預覽

Small

small widget dark small widget light

Medium

medium widget dark medium widget light

Large

large widget dark large widget light

如果對資訊密度、字體大小、間距或不同尺寸的資訊配置有更合適的做法,也歡迎提出建議。

Reviewer 建議重點

建議優先確認:

  • Small / Medium / Large 三種 family 的資訊層級是否合理。
  • Medium / Large Widget 的資訊密度與可讀性。
  • 不同長度的地區名稱與天氣文字是否有潛在 layout 問題。
  • 天氣圖示、文字與詳細資訊在不同 family 間是否保持一致。
  • Large Widget 的文字大小、alignment 與 spacing 是否適合實際主畫面使用。

檢查清單

  • tool/check/commits.sh origin/main..HEAD 通過
    —— commit 訊息就是更新日誌,格式見 commit.md
  • 一個 commit 一件事(這條 gate 驗不了,靠自己和 review)
  • mise exec -- flutter analyze 與 mise exec -- flutter test 通過
  • 新的使用者可見字串皆有本地化
  • 有 UI 變更的話:深色模式與文字顯示已確認;Widget UI 使用原生 SwiftUI layout

@YinCheng0106 YinCheng0106 added this to the v26.4 milestone Sep 26, 2026
@YinCheng0106 YinCheng0106 self-assigned this Sep 26, 2026
@YinCheng0106 YinCheng0106 added the ios Issues or pull requests related to the iOS platform. label Sep 26, 2026
@YinCheng0106
YinCheng0106 added this pull request to stack #581 September 26, 2026 14:42
@YinCheng0106
YinCheng0106 force-pushed the feat/ios-widget-weather-families branch from d9672a5 to a2c16c4 Compare September 27, 2026 06:10
@YinCheng0106
YinCheng0106 marked this pull request as ready for review September 27, 2026 06:10
Copilot AI balanced review requested due to automatic review settings September 27, 2026 06:10

This comment was marked as low quality.

@YinCheng0106
YinCheng0106 requested review from PiscesXD, lowrt and whes1015 and a balanced review from Copilot September 27, 2026 06:12

This comment was marked as low quality.

@codecov

codecov Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 75.60976% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 95.28%. Comparing base (63fdb27) to head (5cf5097).
⚠️ Report is 19 commits behind head on main.

Files with missing lines Patch % Lines
lib/core/realtime/http_time_source.dart 57.77% 19 Missing ⚠️
lib/bootstrap.dart 0.00% 1 Missing ⚠️

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@YinCheng0106
YinCheng0106 force-pushed the feat/ios-widget-weather-families branch 2 times, most recently from 4de7f01 to 234ceea Compare September 28, 2026 07:07
@YinCheng0106
YinCheng0106 force-pushed the feat/ios-widget-weather-families branch from 234ceea to 67d8e2b Compare September 28, 2026 07:43
@whes1015
whes1015 force-pushed the feat/ios-widget-weather-families branch from ca0167a to 675f8ab Compare October 2, 2026 23:17
whes1015
whes1015 previously approved these changes Oct 2, 2026
lowrt
lowrt previously approved these changes Oct 5, 2026

@lowrt lowrt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YinCheng0106 YinCheng0106 reopened this Oct 6, 2026
@whes1015
whes1015 dismissed stale reviews from lowrt and themself October 7, 2026 18:32

The merge-base changed after approval.

@whes1015
whes1015 force-pushed the feat/ios-widget-weather-families branch from 675f8ab to c3beb92 Compare October 7, 2026 18:32
Base automatically changed from feat/ios-widget-weather-refresh to main October 7, 2026 23:44
@YinCheng0106
YinCheng0106 force-pushed the feat/ios-widget-weather-families branch from c3beb92 to 574624b Compare October 8, 2026 00:06
@YinCheng0106
YinCheng0106 requested a review from a team October 8, 2026 00:56
@YinCheng0106
YinCheng0106 force-pushed the feat/ios-widget-weather-families branch from 574624b to be342a9 Compare October 8, 2026 07:30
lowrt
lowrt previously approved these changes Oct 8, 2026
@PiscesXD
PiscesXD force-pushed the feat/ios-widget-weather-families branch from be342a9 to 36c3fdb Compare October 8, 2026 10:47
YinCheng0106 and others added 18 commits October 11, 2026 02:16
Platform: ios

New(zh-Hant): 天氣小工具資料新增風向與風速
New(en-US): add wind direction and speed to weather widget data
Platform: ios

New(zh-Hant): 天氣小工具資料新增目前體感溫度
New(en-US): add current apparent temperature to weather widget data
Platform: ios

New(zh-Hant): 新增中型 iOS 天氣小工具
New(en-US): add a medium iOS weather widget
Platform: ios

New(zh-Hant): 新增 iOS 天氣小工具原生逐時預報資料支援
New(en-US): add native hourly forecast data support for iOS weather widgets
Platform: ios

New(zh-Hant): 新增中型與大型 iOS 天氣小工具及逐時預報
New(en-US): add medium and large iOS weather widgets with hourly forecast
Platform: ios

Fix(zh-Hant): 修正大型天氣小工具的風速文字樣式不一致
Fix(en-US): fix inconsistent wind speed text styling in the large weather widget
Platform: ios

Fix(zh-Hant): 修正天氣小工具預報缺值時會出現空白時段
Fix(en-US): fix blank forecast slots when widget forecast data is incomplete
Platform: ios

Fix(zh-Hant): 裝置時間不準時,iOS 天氣小工具的預報時段與日夜圖示不再跟著偏移
Fix(en-US): the iOS weather widget forecast no longer follows an inaccurate device clock
Platform: ios

Fix(zh-Hant): 切換地區後,iOS 天氣小工具不再繼續顯示舊地區的天氣
Fix(en-US): the iOS weather widget no longer keeps showing the previous region's weather after switching region
Platform: ios

Fix(zh-Hant): 切換地區後,iOS 天氣小工具不再繼續顯示舊地區的逐時預報
Fix(en-US): the iOS weather widget no longer keeps showing the previous region's hourly forecast after switching region
Platform: ios

Fix(zh-Hant): 修正裝置時間不準時可能造成天氣小工具預報快取期限錯誤
Fix(en-US): fix widget forecast cache expiry when the device clock is inaccurate
Platform: all

Fix(zh-Hant): 在會擋掉 NTP 的網路(公司、飯店、校園 Wi-Fi)上也能校準時間,地震速報倒數與資料時效不再退回裝置時鐘
Fix(en-US): the clock now calibrates on networks that block NTP (office, hotel and campus Wi-Fi), so earthquake countdowns and data freshness no longer fall back to the device clock
@whes1015
whes1015 force-pushed the feat/ios-widget-weather-families branch from 6ac98e9 to 5cf5097 Compare October 10, 2026 18:16
@whes1015
whes1015 merged commit 4118da8 into main Oct 10, 2026
@whes1015
whes1015 deleted the feat/ios-widget-weather-families branch October 10, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ios Issues or pull requests related to the iOS platform. size/XXL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants