Crash: Bad state: Cannot use "ref" after the widget was disposed. #80

Closed
opened 2026-05-14 20:55:48 +00:00 by guettli · 0 comments
guettli commented 2026-05-14 20:55:48 +00:00 (Migrated from codeberg.org)

Error: Bad state: Cannot use "ref" after the widget was disposed.

Stack Trace:
#0      ConsumerStatefulElement._assertNotDisposed (package:flutter_riverpod/src/consumer.dart:550)
#1      ConsumerStatefulElement.read (package:flutter_riverpod/src/consumer.dart:619)
#2      _EmailMessageCardState._delete (package:sharedinbox/ui/screens/thread_detail_screen.dart:273)
<asynchronous suspension>
Error: Bad state: Cannot use "ref" after the widget was disposed. ``` Stack Trace: #0 ConsumerStatefulElement._assertNotDisposed (package:flutter_riverpod/src/consumer.dart:550) #1 ConsumerStatefulElement.read (package:flutter_riverpod/src/consumer.dart:619) #2 _EmailMessageCardState._delete (package:sharedinbox/ui/screens/thread_detail_screen.dart:273) <asynchronous suspension> ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: guettli/sharedinbox#80