fit_text 0.1.1 copy "fit_text: ^0.1.1" to clipboard
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_text

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

dependencies:
  fit_text: ^0.1.1

Alternatively, 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';
1
likes
160
points
37
downloads

Documentation

Documentation
API reference

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

MIT (license)

Dependencies

flutter

More

Packages that depend on fit_text