flutter_auto_size_text 4.1.0 copy "flutter_auto_size_text: ^4.1.0" to clipboard
flutter_auto_size_text: ^4.1.0 copied to clipboard

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

example/main.dart

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

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

class App extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return const 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,
            ),
          ),
        ),
      ),
    );
  }
}
copied to clipboard
4
likes
150
points
722
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.20 - 2025.04.04

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

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_auto_size_text