Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rasitayaz/flutter-balanced-text
A Flutter widget that simply balances the lines of two-line text
https://github.com/rasitayaz/flutter-balanced-text
dart dart-package design flutter flutter-widget text
Last synced: 21 days ago
JSON representation
A Flutter widget that simply balances the lines of two-line text
- Host: GitHub
- URL: https://github.com/rasitayaz/flutter-balanced-text
- Owner: rasitayaz
- License: mit
- Created: 2022-07-28T16:36:47.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-10T16:28:32.000Z (about 2 years ago)
- Last Synced: 2024-10-03T12:31:26.820Z (about 1 month ago)
- Topics: dart, dart-package, design, flutter, flutter-widget, text
- Language: Dart
- Homepage:
- Size: 32.2 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.