chain_text_style 0.0.2 copy "chain_text_style: ^0.0.2" to clipboard
chain_text_style: ^0.0.2 copied to clipboard

ChainTextStyle,Can help you simplify code and improve development efficiency

Flutter ChainTextStyle,

This package provides a simple way to chain methods in Dart.

Features #

picture

Getting started #

dependencies:
  chain_text_style: ^0.0.2

Usage #

Default TextStyle #

Text(
  'text',
  style: TextStyle(
    fontSize: 14,
    color: Colors.red,
    fontWeight: FontWeight.w500,
    height: 1.5,
    wordSpacing: 1.5,
  ),
),

Chain TextStyle #

Example1:Colors.xx.fs(xx).xx.xx.st

Text('text1', style: Colors.orange.fs14.st),

Text('text1', style: Colors.black.fs14.fw5.st),

Text('text1', style: Colors.red.fs14.fw5.fh(1.5).fws(1.5).st),

Example2:ChainTS.c(xx).xx.xx.st

Text(
  'text2',
  style: ChainTS.c(Colors.red).fs(14).fw5.fh(1.5).fws(1.5).st,
),

Example3: ChainTS.s(xx).xx.xx.st

Text(
  'text3',
  style: ChainTS.s(14).fc(Colors.red).fw5.fh(1.5).fws(1.5).st,
),

Example4:ChainTS().xx.xx.st

Text(
  'text4',
  style: ChainTS().fs(14).fw5.fws(1.5).fh(1.5).fc(Colors.red).st,
),
1
likes
150
points
46
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

ChainTextStyle,Can help you simplify code and improve development efficiency

Repository (GitHub)
View/report issues

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on chain_text_style