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

Showcase description alignment #292

Conversation

Abu-muhab
Copy link
Contributor

Added ShowcaseDecriptionAlignment to Showcase in relation to this issue: #253

@vatsaltanna-simformsolutions
Copy link
Collaborator

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.

@Abu-muhab
Copy link
Contributor Author

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

@@ -63,6 +63,7 @@ class Showcase extends StatefulWidget {
final VoidCallback? onTargetDoubleTap;
final VoidCallback? onTargetLongPress;
final BorderRadius? tipBorderRadius;
final ShowcaseDecriptionAlignment descriptionAlignment;
Copy link
Collaborator

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pushed new changes

Copy link
Collaborator

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.

Copy link
Contributor Author

@Abu-muhab Abu-muhab Oct 28, 2022

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?

Copy link
Collaborator

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Alright! On it

Copy link
Collaborator

Choose a reason for hiding this comment

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

Highly appreciate it. Thanks!

Copy link
Collaborator

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.

Copy link
Contributor Author

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
@Abu-muhab Abu-muhab force-pushed the feat/showcase-description-alignment branch from b9f0f68 to aed9e76 Compare October 28, 2022 07:59
@vatsaltanna vatsaltanna merged commit 9a6e18b into SimformSolutionsPvtLtd:master Oct 28, 2022
@vatsaltanna
Copy link
Collaborator

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.

@Abu-muhab
Copy link
Contributor Author

Thank you @vatsaltanna-simformsolutions.
Looking forward to contribute more!

Abu-muhab added a commit to Abu-muhab/flutter_showcaseview that referenced this pull request Oct 28, 2022
@Abu-muhab Abu-muhab deleted the feat/showcase-description-alignment branch October 28, 2022 09:22
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.

3 participants