-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.md
20 lines (12 loc) · 827 Bytes
/
README.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Flutter Balanced Text ⚖️
[![Pub](https://img.shields.io/pub/v/balanced_text.svg?style=popout)](https://pub.dartlang.org/packages/balanced_text)
[![](https://img.shields.io/badge/github-rasitayaz-red)](https://github.com/rasitayaz)
[![](https://img.shields.io/badge/buy me a coffee-donate-blue)](https://www.buymeacoffee.com/RasitAyaz)
A Flutter widget that simply balances the lines of two-line text, especially useful on long titles or short descriptions.
![](https://raw.githubusercontent.com/rasitayaz/flutter-balanced-text/master/sample.jpg)
Does not differ from the `Text` widget if the text fits into a single line, or exceeds two lines.
## Usage
```dart
BalancedText('The quick brown fox jumps over the lazy dog');
```
You can also pass properties like `style`, `maxLines`, `textAlign` etc.