Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.