[Bug] Intent Caching and BottomSheet Stacking via Android Widgets & Deep Links
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
Research direction
Start by tracing the Android Home Screen Widget and Quick Action/deep-link entry points into Flutter, then inspect the DetailRouteController and the FAB's native showModalBottomSheet flow. Reproduce both background-launch scenarios and verify that a new task opens correctly and saving an intent-driven sheet returns to the underlying Home screen without a black overlay.
Written by the indexing model from the issue text.
Description
Describe your issue
When the application is launched from the background via an Android Home Screen Widget or Quick Action intent, GetX state management encounters two severe routing and context synchronization bugs:
-
The Widget Controller Cache Loop: Tapping "Task 1" on a widget correctly loads the Detail Route and instantiates a
DetailRouteControllerfor Task 1. However, if the app is backgrounded and the user taps a widget for "Task 3", GetX recognizes thatDETAIL_ROUTEis already active in memory. Instead of routing the new UUID, GetX lazily reuses the cachedDetailRouteController, keeping "Task 1" permanently stuck on screen for all subsequent widget taps. -
The "Black Screen" Context Void: The Floating Action Button natively launched
showModalBottomSheet. If a user tapped a "Quick Action" or "Widget Add Task" intent while the app was backgrounded with a native sheet open, GetX was unable to detect the native sheet viaGet.isBottomSheetOpen. GetX stacked the new intent sheet on top. Upon saving, the system popped the GetX sheet, stranding the user inside an orphaned/black void natively.
Steps to reproduce
Widget Caching Loop:
- Tap Task 1 from an Android Widget.
- Press the Android Home button to background the app.
- Tap Task 3 from an Android Widget.
Result: The app incorrectly displays Task 1.
Black Screen Void:
- Tap the in-app
+FAB to open the Add Task modal. - Press the Android Home button to background the app.
- Long-press the App Icon and trigger the "Add Task" Quick Action intent.
- Fill out the task details and hit Save.
Result: The UI dismisses the active modal but reveals a broken/black overlay instead of the Home screen.
What was the expected result?
The app should cleanly unmount stale overlays (like the native FAB bottom sheet) and explicitly purge legacy controllers (DetailRouteController) from memory before injecting new routing intents from a warm start. The new task should load accurately, and closing a bottom sheet should safely return the user to the underlying UI without crashing into a black screen.
Put here any screenshots or videos (optional)
https://github.com/user-attachments/assets/5d021ebe-5f77-475e-b0d0-e6d84e01a383
How can we contact you (optional)
No response
Would you like to work on this issue?
Yes
By submitting this issue, I have confirmed that:
- I have starred the repo ⭐ and watched 👀 it on GitHub and followed the contribution guidelines.
- Dominant language
- Dart
- Stars
- 246
- Forks
- 184
- PR merge metrics
- No merged PRs in 30d
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 CCExtractor/taskwarrior-flutter
-
Fix misaligned text "Select the directory" in settings tileMay be free again @alabeddev claimed this 241 days ago, and no pull request is open. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CCExtractor/taskwarrior-flutter#639 · 2 comments ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Drawer should close automatically when navigating to a new screenMay be free again A pull request for this issue was closed without being merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 52/100
-
Sensitive Credentials Stored in Plain Text Files Without EncryptionMay be free again @sahu-virendra-1908 claimed this 238 days ago, and no pull request is open. Openbug
Difficulty 5/5 Over a week Newbie friendliness 45/100
CCExtractor/taskwarrior-flutter#645 · 1 comment ·
All issues in CCExtractor/taskwarrior-flutter
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 60/100
hiddify/hiddify-app#2668 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
toyota-connected/emb_cli#358 ·
Maintainers usually reply within 1 day
-
area: import beta cluster: callers box improvements severity: minor status: confirmed type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ibanner56/CallersCompendium#2366 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
ccch1mneyyy/dsh-Go#1777 ·
Maintainers usually reply within 1 day
-
area: mobile documentation good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
CommandLineCoding/Elephant#383 ·
Maintainers usually reply within 1 day