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

Pass styles as parameters #30

Closed
Prn-Ice opened this issue Sep 19, 2020 · 1 comment
Closed

Pass styles as parameters #30

Prn-Ice opened this issue Sep 19, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@Prn-Ice
Copy link

Prn-Ice commented Sep 19, 2020

Is your feature request related to a problem? Please describe.
I find myself often in situations like

'New Guy'.text.xl4.bold.white.make(),
'We haven\'t seen you around before'.text.xl4.bold.white.center.make(),

Describe the solution you'd like
It would be nice if we could share styles like

final style = xl4.bold.white;
'New Guy'.text.style(style).make(),
'We haven\'t seen you around before'.text.style(style).center.make(),
@iampawan
Copy link
Owner

iampawan commented Sep 19, 2020

There is a method called textStyle() which you can use for the same job.

New Guy'.text.textStyle(style).make(),

@iampawan iampawan added documentation Improvements or additions to documentation question Further information is requested labels Sep 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants