Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Flutter
  3. AutoSizeText

AutoSizeText

MITDart

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

Visit WebsiteGitHubGitHub
2.1k stars262 forks0 contributors

What is AutoSizeText?

AutoSizeText is a Flutter package that provides a widget which automatically adjusts the font size of text to fit perfectly within its container bounds. It solves the common problem of text overflow in responsive layouts by dynamically scaling text based on available space, ensuring content remains readable without manual adjustments.

Target Audience

Flutter developers building mobile, web, or desktop applications who need responsive text that adapts to varying screen sizes, content lengths, or dynamic layouts.

Value Proposition

Developers choose AutoSizeText because it seamlessly replaces the standard Text widget with zero configuration, offers fine-grained control over resizing behavior, and maintains high performance while eliminating manual text scaling calculations.

Overview

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

Use Cases

Best For

  • Creating responsive UIs where text must adapt to different screen sizes
  • Building dynamic layouts with variable-length content that could cause overflow
  • Implementing consistent typography across multiple synchronized text widgets
  • Developing apps with strict space constraints where manual font sizing is impractical
  • Replacing standard Text widgets with automatic resizing without refactoring
  • Handling multilingual text that varies significantly in length across translations

Not Ideal For

  • Flutter projects requiring strict, unchanging typography scales for brand consistency
  • High-frequency updating UIs like live feeds where constant text resizing could cause visual jitter
  • Apps with deeply nested or unconstrained layouts that don't provide clear width/height bounds

Pros & Cons

Pros

Seamless Drop-in Replacement

Behaves exactly like Flutter's standard Text widget, allowing direct substitution without refactoring existing code, as emphasized in the README's usage examples.

Fine-Grained Control

Offers parameters like minFontSize, maxFontSize, stepGranularity, and presetFontSizes for precise resizing behavior, demonstrated in the GIFs and documentation.

Group Synchronization

AutoSizeGroup enables multiple text widgets to share the same font size for consistent typography, with clear examples in the README showing synchronized scaling.

Rich Text Support

Works with AutoSizeText.rich() for styled text spans while maintaining proportional scaling, though it requires careful setup as noted in the troubleshooting section.

Cons

Layout Constraint Dependency

Requires explicit width and height bounds to function; in unconstrained layouts like Row or Column without Expanded, it fails to resize, as admitted in the troubleshooting section.

Complex Rich Text Setup

Using AutoSizeText.rich() demands attention to style inheritance and minFontSize settings to avoid incorrect resizing, leading to potential bugs if not configured properly.

Performance Trade-offs

While optimized, the README warns that unreasonable font size ranges or small stepGranularity can impact performance, making it less ideal for highly dynamic scenarios.

Frequently Asked Questions

Quick Stats

Stars2,138
Forks262
Contributors0
Open Issues84
Last commit2 years ago
CreatedSince 2018

Tags

#dart#ios#android#ui#flutter-widget#typography#mobile-development#cross-platform#flutter#text#responsive-design

Built With

F
Flutter
D
Dart

Links & Resources

Website

Included in

Flutter59.5k
Auto-fetched 1 day ago

Related Projects

TeXTeX

A Flutter Package to render Mathematics, Physics and Chemistry Equations based on LaTeX

Stars304
Forks147
Last commit17 days ago
FleatherFleather

Soft and gentle rich text editing for Flutter applications.

Stars304
Forks68
Last commit14 days ago
Masked TextMasked Text

A masked text for Flutter.

Stars275
Forks130
Last commit3 years ago
Code FieldCode Field

A customizable code text field supporting syntax highlighting

Stars248
Forks62
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub