-
-
Notifications
You must be signed in to change notification settings - Fork 15
Fixes: Replace hardcoded maxlines to parameter #26
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
base: main
Are you sure you want to change the base?
Conversation
bdlukaa
left a comment
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.
Improve formatting with trailing commas.
Add documentation to the new properties.
| outerRadius: outerRadius ?? kDefaultOuterRadius, | ||
| textAlign: textAlign, | ||
| maxLines: 1, | ||
| maxLines: maxLines, |
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.
| maxLines: maxLines, | |
| maxLines: maxLines ?? 1, |
| ## 0.5.1 | ||
| * fix: Added maxlines on parameters replacing hardcoded maxline | ||
|
|
||
|
|
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.
| ## 0.5.1 | |
| * fix: Added maxlines on parameters replacing hardcoded maxline | |
| ## 0.5.1 | |
| * fix: Added maxlines on parameters replacing hardcoded maxline |
| final lineInfos = computeLines(text, | ||
| firstLinePadding: firstLinePadding, | ||
| innerLinePadding: innerLinePadding, | ||
| lastLinePadding: lastLinePadding); |
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.
Improve formatting:
| final lineInfos = computeLines(text, | |
| firstLinePadding: firstLinePadding, | |
| innerLinePadding: innerLinePadding, | |
| lastLinePadding: lastLinePadding); | |
| final lineInfos = computeLines(text, | |
| firstLinePadding: firstLinePadding, | |
| innerLinePadding: innerLinePadding, | |
| lastLinePadding: lastLinePadding, | |
| ); |
| backgroundColor: backgroundColor ?? Colors.transparent, | ||
| text: painter, | ||
| innerRadius: innerRadius, | ||
| outerRadius: outerRadius, | ||
| firstLinePadding: firstLinePadding, | ||
| innerLinePadding: innerLinePadding, | ||
| lastLinePadding: lastLinePadding), |
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.
| backgroundColor: backgroundColor ?? Colors.transparent, | |
| text: painter, | |
| innerRadius: innerRadius, | |
| outerRadius: outerRadius, | |
| firstLinePadding: firstLinePadding, | |
| innerLinePadding: innerLinePadding, | |
| lastLinePadding: lastLinePadding), | |
| backgroundColor: backgroundColor ?? Colors.transparent, | |
| text: painter, | |
| innerRadius: innerRadius, | |
| outerRadius: outerRadius, | |
| firstLinePadding: firstLinePadding, | |
| innerLinePadding: innerLinePadding, | |
| lastLinePadding: lastLinePadding | |
| ), |
before:

after:

List which issues are fixed by this PR. You must list at least one issue.
Due to hardcoded maxline the text would always wrap on 1 line and others would be hidden hence passing maxlines through parameter.
Pre-launch Checklist
CHANGELOG.mdwith my changes