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: issue #3133 backbutton visible now #3137

Closed
wants to merge 0 commits into from
Closed

fix: issue #3133 backbutton visible now #3137

wants to merge 0 commits into from

Conversation

Akashsri3bi
Copy link
Contributor

@Akashsri3bi Akashsri3bi commented Oct 13, 2022

What

BackButton Visible now in LightMode

Screenshot

Screenshot_2022-10-13-19-23-53-29 1
@M123-dev .

@codecov-commenter
Copy link

Codecov Report

Merging #3137 (916f43b) into develop (d49c2bc) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##           develop   #3137   +/-   ##
=======================================
  Coverage     6.40%   6.40%           
=======================================
  Files          247     247           
  Lines        12324   12324           
=======================================
  Hits           789     789           
  Misses       11535   11535           
Impacted Files Coverage Δ
...pp/lib/generic_lib/widgets/smooth_back_button.dart 7.14% <0.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@M123-dev
Copy link
Member

Heyy @Akashsri3bi this change works for the search page, but would break other pages, as this SmoothBackButton is also used in the ProductPage and the image gallery so just changing it will break this. Though I think it makes sense to make this Widget work for the normal AppBar.

My suggestion:

  • Add a optional inverted bool to the SmoothBackButton
  • Make the color `color: iconColor ?? (inverted ? Colors.white : Colors.black),
  • Make all the usage in product_image_viewer.dart new_product_page.dart & product_image_gallery_view.dart inverted

@Akashsri3bi
Copy link
Contributor Author

Okay I will look into it

@Akashsri3bi
Copy link
Contributor Author

Using Theme It now works as expected , I tried to go for approach inverted bool but got stuck somewhere and that's why I found a way around hope it seems ok @M123-dev

@Akashsri3bi
Copy link
Contributor Author

The recent commit also fixes the issue #2988 ( The secondary button is hard to differentiate from text )

  • implemented row style , gave button a border 1 px

Screenshot_2022-10-15-01-52-21-68 1

@g123k
Copy link
Collaborator

g123k commented Oct 15, 2022

The recent commit also fixes the issue #2988 ( The secondary button is hard to differentiate from text )

  • implemented row style , gave button a border 1 px

Screenshot_2022-10-15-01-52-21-68 1

Hello,

Please make this second feature another PR.
Basically 1 PR = 1 feature.

thanks

This pull request was closed.
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.

4 participants