-
Notifications
You must be signed in to change notification settings - Fork 466
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
Showcase description alignment #292
Showcase description alignment #292
Conversation
Hi @Abu-muhab , Thanks for contributing to this package. I see that this PR includes two different functionalities 1. text alignment and 2. text computation. can you please create a PR which includes only text alignment changes. |
Thanks @vatsaltanna-simformsolutions. I have reverted the text computation changes on this PR. I have opened a separate PR for that here https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/pull/293/files |
lib/src/showcase.dart
Outdated
@@ -63,6 +63,7 @@ class Showcase extends StatefulWidget { | |||
final VoidCallback? onTargetDoubleTap; | |||
final VoidCallback? onTargetLongPress; | |||
final BorderRadius? tipBorderRadius; | |||
final ShowcaseDecriptionAlignment descriptionAlignment; |
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.
please use TextAlign type instead of creating separate type.
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.
Pushed new changes
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.
Thanks, Can you please add the same changes for the title too ? Also please squash all the commits.
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.
Not sure what you mean. The variable descriptionAlignment
should be renamed to textAlign?
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.
nope, It's perfect. can you please create the same configuration for title too? titleAlignment
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.
Alright! On it
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.
Highly appreciate it. Thanks!
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.
please make sure to squash all the commits as there are more than 10 commits have been created for this feature.
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.
@vatsaltanna Commits squashed and changes pushed for titleAlignment
chore: naming fix feat: showcase description alignment fix: use TextAlign to align text fix: set default description alignment to left chore: make descriptionAlignment optional chore: revert width computation changes fix: use TextAlign instead of custom alignment type chore: clean up feat: title alignment
b9f0f68
to
aed9e76
Compare
Hi @Abu-muhab , This PR has been merged and changes will be available to user in next release. Thank you very much for your contrubution to this wornderfull package. |
Thank you @vatsaltanna-simformsolutions. |
feat: title and description alignment (SimformSolutionsPvtLtd#292)
Added
ShowcaseDecriptionAlignment
toShowcase
in relation to this issue: #253