-
-
Notifications
You must be signed in to change notification settings - Fork 313
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: secondary button now differentiable issue #2988 #3171
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.
Heyy, @Akashsri3bi this change looks good but there is one problem, on some devices this text is too long to fit in a row. We already fixed this by allowing to pass a positiveAction
and negativeAction
like here:
smooth-app/packages/smooth_app/lib/pages/product/common/product_dialog_helper.dart
Line 57 in 77569bf
positiveAction: SmoothActionButton( |
It would be good to use this instead of the row
Actually in the issue one of the project maintainers advised that in row it will look better, no worries I will fix it as required.. |
I know @Akashsri3bi it was actually me 😆 Didn't knew that we have these as parameters for our |
Okay , No worries😁 I will fix it |
@M123-dev I think now it's fine with recent changes ! |
appLocalizations.contribute_improve_ProductsToBeCompleted, | ||
child: Container( | ||
padding: | ||
const EdgeInsets.symmetric(horizontal: 8, vertical: 5), |
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.
I believe there are constants already declared, if I remember MEDIUM_SPACE
, like these, instead of hardcoding 8, 5, and 23
it would make sense to use a constant or maybe in case you need a new one declare that as well
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.
So Should I replace constant values ? and use MEDIUM_SPACE instead or something else
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.
Yes @Akashsri3bi
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.
okay great !
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.
While thinking about it again, using a SmoothActionButton
would simplify this even more @Akashsri3bi, the thinking is to just have one place to change values in one place if we decide to change something on the theme
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.
Made it to negativeactionbutton , what is going wrong in tests not able to understand ?
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.
That's the golden tests in action for now, can you send the screenshot page in light and dark theme
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.
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.
Now the contents aren't readable,
Can we tweak the negative action button's properties to make it readable,
Looking after this, we were much better with the early version you did,
Any suggestions here @M123-dev >?
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.
I tried to do some changes in class property but It does not works , What would you recommend ?
Codecov Report
@@ Coverage Diff @@
## develop #3171 +/- ##
==========================================
- Coverage 6.19% 6.17% -0.02%
==========================================
Files 248 252 +4
Lines 12439 12495 +56
==========================================
+ Hits 771 772 +1
- Misses 11668 11723 +55
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
@AshAman999 @M123-dev secondary action button now looks appropriate |
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.
Sorry for this late response, but looks great, thanks @Akashsri3bi
Thanks very much ! 🙂 |
What
Fixed as requirements