easily_materialized 0.0.1 copy "easily_materialized: ^0.0.1" to clipboard
easily_materialized: ^0.0.1 copied to clipboard

A flutter library to help lift up some tedious tasks in setting up material theme properly.

easily_materialized #

easily_materialized codecov pub package

Buy Me A Coffee

A flutter library to help lift up some tedious tasks in setting up material theme properly.

Features #

ModifyTextTheme (TextTheme extension) #

ModifyTextTheme an extension of TextTheme to easily bulk update either or both display and body text styles.

I only expose fontFamily and color because I believe only those two should be modified. But in case you need more, you can always call copyWith from any TextTheme and TextStyle.

To understand more about material type system, read here.

Update your display styles (all headlines and subtitles):

final TextTheme result = Typography.englishLike2018
  .modifyDisplayStyles(fontFamily: 'Montserrat', color: Colors.green);

Update your body styles (bodyText1, bodyText2, caption, button and overline)

final TextTheme result = Typography.englishLike2018
  .modifyBodyStyles(fontFamily: 'Lato', color: Colors.red);

Or even chain both of them to update all styles in a theme

final TextTheme result = Typography.englishLike2018
  .modifyDisplayStyles(fontFamily: 'Montserrat', color: Colors.green)
  .modifyBodyStyles(fontFamily: 'Lato', color: Colors.red);
2
likes
30
pub points
0%
popularity

Publisher

verified publishermoseskarunia.com

A flutter library to help lift up some tedious tasks in setting up material theme properly.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on easily_materialized