auto_size_text 2.1.0

Flutter Android iOS web

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.0,
            height: 140.0,
            child: AutoSizeText(
              'This string will be automatically resized to fit in two lines.',
              style: TextStyle(fontSize: 30.0),
              maxLines: 2,
            ),
          ),
        ),
      ),
    );
  }
}
798
likes
110
pub points
99%
popularity

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

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

simonleier@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on auto_size_text