fit_text 0.1.1
fit_text: ^0.1.1 copied to clipboard
Text that shrinks to fit its box, correctly. Works inside Expanded, Row, IntrinsicHeight and unbounded constraints, where LayoutBuilder-based auto-sizing gives up.
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add fit_textThis will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get):
dependencies:
fit_text: ^0.1.1Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:fit_text/fit_text.dart';