fit_text 0.1.2 copy "fit_text: ^0.1.2" to clipboard
fit_text: ^0.1.2 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 Dart:

 $ dart pub add fit_text

With Flutter:

 $ flutter pub add fit_text

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  fit_text: ^0.1.2

Alternatively, your editor might support dart pub get or 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';
2
likes
0
points
399
downloads

Documentation

Documentation

Publisher

verified publisherjumyn.com

Weekly Downloads

Text that shrinks to fit its box, correctly. Works inside Expanded, Row, IntrinsicHeight and unbounded constraints, where LayoutBuilder-based auto-sizing gives up.

Repository (GitHub)
View/report issues

Topics

#text #layout #typography #responsive #ui

License

unknown (license)

Dependencies

flutter

More

Packages that depend on fit_text