Files
swiftcontrol/lib/widgets/ui
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
..
2026-05-25 20:13:08 +02:00
2025-12-04 14:00:39 +00:00
2026-05-25 20:13:08 +02:00
2025-12-05 15:40:04 +01:00
2026-03-01 12:36:08 +01:00
2026-03-25 11:28:03 +01:00
2026-01-07 10:19:21 +01:00
2026-02-22 17:19:56 +01:00
2026-03-11 15:13:00 +01:00
2026-03-13 09:19:17 +01:00
2026-01-01 13:44:45 +01:00
2026-04-23 12:02:18 +02:00