Home-screen widgets: localize text and follow the km/mi setting
Maintainers usually reply within 5 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 54/100
Research direction
Read app/lib/core/services/home_widget_service.dart and trace how it gets the rider’s unit and localized text; then inspect the Android widget providers and app/ios/ThrottleIQWidget/ThrottleIQWidget.swift to see how values are displayed. Add the requested formatting unit test in the service test suite and run scripts/check.sh. Done when widget values use the selected km/mi setting, text is localized, and the quality gate passes.
Written by the indexing model from the issue text.
Description
What's wrong / what's wanted
The home-screen widget text is English-only and always uses km, even when the rider chose Bangla or miles. In-app alerts already follow the km/mi choice.
Where
app/lib/core/services/home_widget_service.dartapp/android/app/src/main/kotlin/com/bft/throttleiq/ (widget providers)app/ios/ThrottleIQWidget/ThrottleIQWidget.swift
Acceptance criteria
- Values the app writes for the widgets use the rider's unit
- Text is passed from Flutter (localized) or localized natively
- Unit test for the formatting in
home_widget_service.dart
How to verify
Check on an Android emulator or iOS simulator home screen with Bangla and miles selected.
Run scripts/check.sh from the repo root (the same quality gate CI runs). It must pass.
- Dominant language
- Dart
- Stars
- 4
- Forks
- 1
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 7
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from blankframe-tech/ThrottleIQ
-
dart enhancement help wanted translation
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
blankframe-tech/ThrottleIQ#35 ·
Maintainers usually reply within 5 days
-
Review the machine-drafted Bangla strings (native speakers wanted)Possibly taken @RanaKhan77 claimed this 1 day ago. Opengood first issue help wanted translation
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
blankframe-tech/ThrottleIQ#23 · 6 comments ·
Maintainers usually reply within 5 days
-
dart enhancement help wanted
Difficulty 3/5 1-2 days Newbie friendliness 66/100
blankframe-tech/ThrottleIQ#51 ·
Maintainers usually reply within 5 days
-
dart enhancement help wanted
Difficulty 4/5 3-5 days Newbie friendliness 52/100
blankframe-tech/ThrottleIQ#48 ·
Maintainers usually reply within 5 days
-
help wanted
Difficulty 3/5 1-2 days Newbie friendliness 72/100
blankframe-tech/ThrottleIQ#24 ·
Maintainers usually reply within 5 days
All issues in blankframe-tech/ThrottleIQ
Similar issues
-
'图片收藏'功能无法滑动Open
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
venera-app/venera-prime#50 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Tencent/tdesign-flutter#1229 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
VeryGoodOpenSource/very_good_analysis#254 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
berkmancenter/frankly#732 ·
Maintainers usually reply within 1 day