Commit Graph

28 Commits

Author SHA1 Message Date
Jonas Bark
c682be43bc fix(ui): guard async setState/context against disposed widgets
Symbolicating a Rouvy user's 6.1 crashes (Shorebird patch build_id
4b7026f5fbf44e52452ba9e557c2c5a0) surfaced two "Null check operator used
on a null value" crashes: async UI callbacks running after their widget
was disposed (the user rapidly re-toggled the Zwift BLE option as
advertising kept failing).

- ZwiftTile.onChange: setState() ran after `await stopAllBleConnections`
  on an unmounted state -> guard with `mounted`.
- ConnectionMethod: openPermissionSheet(context, ...) and setState() ran
  after `await Future.wait(requirements)` on a defunct context -> guard
  both async gaps with `context.mounted` (matching the existing guard at
  line 315).

The underlying trigger (Zwift emulator "Data too large" advertise failure
on Rouvy) is tracked separately for the 6.2 branch.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-25 08:16:08 +02:00
Jonas Bark
c47667af94 UI adjustments, BLE advertisement fix 2026-04-26 09:14:00 +02:00
Jonas Bark
d3821ff782 resolve https://github.com/OpenBikeControl/bikecontrol/issues/341 2026-04-12 09:20:44 +02:00
Jonas Bark
9443083fe2 wording adjustments 2026-04-07 08:26:51 +02:00
Jonas Bark
f58d96fd1e connection method adjustments 2026-03-25 13:49:49 +01:00
Jonas Bark
a34b2ac9bf revise connection methods 2026-03-25 09:27:37 +01:00
Jonas Bark
30037e1a83 new ui #4 2026-03-10 19:04:51 +01:00
Jonas Bark
ce36b8d8aa mark some connection methods as recommended 2026-03-04 14:22:38 +01:00
Jonas Bark
565d14c3c0 group buttons by device, add new unlock mechanism 2026-01-23 15:27:32 +01:00
Jonas Bark
32046c1721 list supported actions of connection method 2026-01-11 13:00:43 +01:00
Jonas Bark
86b1ac1e23 press longer for the simulator, enable long press for devices not supporting long press (e.g. Shimano Di2) 2025-12-19 11:33:13 +01:00
Jonas Bark
ae0996c156 error reporting when starting connection method 2025-12-15 13:13:57 +01:00
Jonas Bark
2528342a7b remove remains of swift_control 2025-12-14 16:22:07 +01:00
Jonas Bark
7ed34611db button simulator adjustments 2025-12-11 09:20:02 +01:00
Jonas Bark
7f5e5656d7 add more instructions, clarify mail support 2025-12-10 21:17:49 +01:00
Jonas Bark
5bf9c4df63 work on mDNS 2025-12-05 10:51:40 +01:00
Jonas Bark
58998bb61b ui, fixes 2025-12-04 19:32:02 +00:00
Jonas Bark
eea1e5007e connection method badges 2025-12-04 14:00:39 +00:00
Jonas Bark
04cfd68140 translations 2025-12-01 15:46:02 +00:00
copilot-swe-agent[bot]
d40a44c16d Add i18n_extension.dart and fix import/export keys, update imports
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-12-01 14:48:45 +00:00
copilot-swe-agent[bot]
ac6b430172 Update remaining files to use localized strings
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-12-01 14:41:28 +00:00
Jonas Bark
5bf82b9d3d auto start connection methods and scanning 2025-12-01 09:30:21 +00:00
Jonas Bark
456e7cd45d heureka 2025-11-30 00:44:45 +00:00
Jonas Bark
8a60c589db less god objects 2025-11-29 13:12:09 +00:00
Jonas Bark
20cd500cfb work on new ui 2025-11-27 09:44:26 +00:00
copilot-swe-agent[bot]
ee0bae53eb Complete remaining SwiftControl to BikeControl renames in code
Co-authored-by: jonasbark <1151304+jonasbark@users.noreply.github.com>
2025-11-21 18:11:41 +00:00
Jonas Bark
0657612c4c update rouvy keymap to support their latest version 2025-11-18 22:08:16 +00:00
Jonas Bark
660ed856d1 show to user when MyWhoosh Link can't be started, cleanup 2025-11-12 09:22:41 +01:00