Search packages, repositories and app categories

auto_size_text cover
Package detailsv3.0.0

auto_size_text

Flutter widget that automatically resizes text to fit perfectly within its bounds.

AndroidiOSWebmacOSWindowsLinux
30-day downloads
1.3M
Likes
5.1K
Pub points
150

Install package

flutter pub add auto_size_text

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Flutter widget that automatically adjusts text size to fit within defined bounds, ensuring optimal readability without overflow. It dynamically scales text down to the smallest legible size while maintaining layout constraints across all platforms. Ideal for responsive designs where text content varies or space is limited. The package supports multiple text styles and integrates seamlessly with existing widgets. It's particularly useful in UIs with dynamic content such as labels, cards, or chat bubbles.

Use cases

  • Responsive UI layouts
  • Dynamic text content display
  • Chat interfaces with variable message lengths
  • Card or container text fitting
  • Multi-platform app consistency

Key features

  • Automatic text scaling
  • Cross-platform support
  • Configurable min/max text sizes
  • Supports TextStyle customization
  • Prevents text overflow

Suitable for

  • Developers building responsive Flutter apps
  • Designers needing consistent text rendering
  • Apps with variable-length text inputs
  • UI components requiring adaptive typography

Considerations

  • May impact performance with many instances
  • Requires careful tuning of min/max font sizes
  • Not suitable for fixed-size text requirements
  • Limited control over intermediate scaling steps
  • Best used with predictable layout constraints

Categories

Projects using this package

Rankings