large Flutter Favorite logosmall Flutter Favorite logo

auto_size_text 3.0.0 icon indicating copy to clipboard operation
auto_size_text: ^3.0.0 copied to clipboard

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

example/main.dart

import 'package:auto_size_text/auto_size_text.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(App());
}

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Center(
          child: SizedBox(
            width: 200,
            height: 140,
            child: AutoSizeText(
              'This string will be automatically resized to fit in two lines.',
              style: TextStyle(fontSize: 30),
              maxLines: 2,
            ),
          ),
        ),
      ),
    );
  }
}
3750
likes
140
pub points
100%
popularity

Publisher

verified publisher iconsimc.dev

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

Repository (GitHub)

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on auto_size_text