-
-
Notifications
You must be signed in to change notification settings - Fork 314
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: image edit and not logged-in user #3689
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @Akashsri3bi, that part is perfect!
Now what needs to be changed is the access to the product images page, that should not be restricted.
cf. issue:
- Go to a product page
- Click on the "edit" button
- You land on the "edit product" page
- There's a "edit photo" item, but if you click it you get a "for that feature you must be connected" message
Now on step 4 you should be able to click on edit photo and land on all photo pages, which gives access to (almost) full-screen photo. And then to the unselect/crop/camera/gallery edit photo buttons, where you've just put the "check log-in" restriction in your PR. OK?
@Akashsri3bi And you have to fix the warnings too:
|
Gotcha! |
I tried to look it It seems to be having more issues do you have any tips around . this didn't help [(https://stackoverflow.com/questions/68871880/do-not-use-buildcontexts-across-async-gaps)] |
What about https://stackoverflow.com/a/69253529/14517119 and |
seems like context.mounted doesn't work in this case it disturbs other calls |
Codecov Report
@@ Coverage Diff @@
## develop #3689 +/- ##
==========================================
- Coverage 9.45% 9.34% -0.11%
==========================================
Files 269 272 +3
Lines 13571 13722 +151
==========================================
Hits 1283 1283
- Misses 12288 12439 +151
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me @Akashsri3bi!
The part about ignore: use_build_context_synchronously
is not very important but should be fixed one day, and that's easy with flutter 3.7 (#1815).
Thanks @monsieurtanuki , infact context.mounted will be updated in flutter 3.7 |
Though to develop on existing function , It worked well on debug .