taskwarrior-flutter
taskwarrior-flutter copied to clipboard
Error screen on clicking Home Widget on android
Describe your issue
When you click on home widget on android it opens app and shows error screen. This happens only when the app is closed completely.
Steps to reproduce
- Add home widget.
- Close the app and remove it from android's recent apps.(I mean completely close it)
- Click on the Home widget to add or view task.
What was the expected result?
It should direct into the app like it is doing when the app is open.
Put here any screenshots or videos (optional)
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:
- [x] I have starred the repo ⭐ and watched 👀 it on GitHub and followed the contribution guidelines.
I can work on this
This might be a regression added by PR https://github.com/CCExtractor/taskwarrior-flutter/pull/448 Because it works fine with https://github.com/CCExtractor/taskwarrior-flutter/pull/417
@SGI-CAPP-AT2 I reverted the changes made by PR #448 and the issue still persists. So I don't think it is due to that. I am working on the issue and have fixed it partially.
@SGI-CAPP-AT2 If you want you can try fixing it. I tried but there seems to be some issue I can't understand. I fixed it partially fixed it by adding unknownRoute to SplashScreen that fixed the widget click when the app is closed but when the app is in background and the widget is clicked it gets stuck in SplashScreen with that fix as the arguments passed to DetailRoute turns out to be null although it is not null when we pass it. If you have any idea why is it happening please let me know I can try fixing it or you can go ahead and fix it.
Yes, I'll try and will let you know about problem if fixed