auto_size_text_pk 3.0.0 copy "auto_size_text_pk: ^3.0.0" to clipboard
auto_size_text_pk: ^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_pk/auto_size_text_pk.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,
            ),
          ),
        ),
      ),
    );
  }
}
54
likes
140
points
7.57k
downloads

Publisher

verified publishercodepur.dev

Weekly Downloads

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

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on auto_size_text_pk