Skip to content
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

feat: added dialog if users click on unselect image button #2427 #3659

Closed
wants to merge 0 commits into from

Conversation

BhuvanAde
Copy link
Contributor

Signed-off-by: BhuvanAde bhuvanadey@gmail.com

What

  • Added an "are you sure?" dialog when the user clicks on the "unselect image" button.
  • Added a new dialog and added one entry in app_en.ar

Screenshot

image

Fixes bug(s)

#2427

Part of

@BhuvanAde
Copy link
Contributor Author

Openfoodfacts_screenrec.mov

@monsieurtanuki @teolemon Please review, here's the screen recording and please let me know if there are any changes to be made.

Copy link
Contributor

@monsieurtanuki monsieurtanuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @BhuvanAde!
Please have a look at my comments.
And even more important: use branches for PRs, not develop.

packages/smooth_app/pubspec.lock Outdated Show resolved Hide resolved
@BhuvanAde
Copy link
Contributor Author

I'm really sorry @monsieurtanuki , I have made the suggested changes. I'm really sorry I will make sure to create a new branch next time. Please let me know if there are any other changes required.

Copy link
Contributor

@monsieurtanuki monsieurtanuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still can't see a good reason to have any change in pubspec.lock. Please remove it from the PR.

@BhuvanAde
Copy link
Contributor Author

@monsieurtanuki I have changed the pubspec.lock .

@BhuvanAde
Copy link
Contributor Author

I think there are conflicts. Shall I send the PR again? Please let me know

@BhuvanAde
Copy link
Contributor Author

Shall I rebase and accept my correct changes?

@M123-dev
Copy link
Member

M123-dev commented Feb 1, 2023

Shall I rebase and accept my correct changes?

If you are able to do so, sure. If there are too many, you can reopen as well

@BhuvanAde BhuvanAde changed the title feat: added dialog if users click on unselect image button feat: added dialog if users click on unselect image button #2427 Feb 9, 2023
Copy link
Contributor

@monsieurtanuki monsieurtanuki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @BhuvanAde!
Please have a look at my comments and get rid of pubspec.lock.

_barcode,
imageField: widget.imageField,
widget: this,
final bool? includeLogs = await showDialog<bool>(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very peculiar variable choice!
What about confirmed?

Comment on lines 117 to 118
_localDatabase.notifyListeners();
navigatorState.pop();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put those lines back.

@@ -1624,6 +1624,12 @@
"choose_image_source_body": "Please choose a image source",
"@choose_image_source_body": {
"description": "Body for the image source chooser"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

navigatorState.pop();
},
),
if (includeLogs ?? false) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (includeLogs ?? false) {
if (includeLogs == true) {

would be easier to read.

@BhuvanAde
Copy link
Contributor Author

I will make a new PR @monsieurtanuki.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Add image unselect in the expanded view accessible from the carousel
3 participants