text_balancer 0.1.2 copy "text_balancer: ^0.1.2" to clipboard
text_balancer: ^0.1.2 copied to clipboard

Flutter package that makes text more readable.

Flutter package that makes text more readable. It works with fixed-width as well as variable-width fonts.

line-balancer demo

How To Use #

/// Widget
TextBalancer('text');

/// Text Extension
Text('text').balance(
  context,
  maxWidth: constraints.maxWidth,
);

/// String Extension
'text'.balance(
  textStyle: textStyle,
  maxWidth: constrains.maxWidth,
)

Performance #

performance

  • Time complexity : O(n * log n)
  • Modified the algorithm to work with variable-width fonts where each character has a different width.

References #

2
likes
0
pub points
56%
popularity

Publisher

verified publisherdevstory.co.kr

Flutter package that makes text more readable.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on text_balancer