text_balancer 0.1.0 copy "text_balancer: ^0.1.0" to clipboard
text_balancer: ^0.1.0 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.

https://github.com/nero-angela/flutter_text_balancer/assets/26322627/01fc5f70-ea01-4879-8ff2-242590d60894

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