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

fix: Image extraction screen #3026

Merged

Conversation

Puja-Kumari-909
Copy link
Contributor

What

  • Changed the image extraction white screen to a descriptive image with text when there is no image available

Screenshot(Before and After)

Fixes bug(s)

@Puja-Kumari-909 Puja-Kumari-909 requested a review from a team as a code owner September 16, 2022 14:27
@AshAman999 AshAman999 changed the title Image extraction screen fix: Image extraction screen Sep 16, 2022
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 @Puja-Kumari-909!
Please have a look at my comments; nothing very hard to fix.

children: <Widget>[
const Icon(
Icons.image_not_supported,
size: 200,
Copy link
Contributor

Choose a reason for hiding this comment

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

Where does that 200 come from?
If I see your screenshots, there seems to be already a space / positioning in place (on both pictures the refresh/upload photo button is at the same place).
I suggest that you just fill the space (Expand?) with the icon instead of specifying a fixed size of 200.
That said, if 200 already appears somewhere else in the code (for positioning purposes), please make it a static const.
(not fan of the margin either, for the same reasons: why 0.25?)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hello @monsieurtanuki,
Thanks for the review. I changed most of the things you asked for.
I removed the 200, instead used the size object.height / 4. And also for 0.25 I used the same size object. Should be consistent for all screen size.

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.

Thank you @Puja-Kumari-909, and congratulations for your first PR here!
I'm a bit puzzled to see size.height * 0.25 and then 5 lines lower size.height / 4, but that's OK ;)

@monsieurtanuki monsieurtanuki merged commit f893237 into openfoodfacts:develop Sep 17, 2022
@M123-dev
Copy link
Member

Congrats on your first PR here @Puja-Kumari-909 🥳

@Puja-Kumari-909
Copy link
Contributor Author

Thanks to all three of you @M123-dev @monsieurtanuki @AshAman999 for making my first time contribution smooth :)
Hope to learn lots with my future contributions.

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

Successfully merging this pull request may close these issues.

GH - The image extraction screen is white without image
3 participants