auto_size_text_plus 3.0.2 copy "auto_size_text_plus: ^3.0.2" to clipboard
auto_size_text_plus: ^3.0.2 copied to clipboard

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

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @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,
            ),
          ),
        ),
      ),
    );
  }
}
6
likes
150
pub points
92%
popularity

Publisher

verified publishersiro.co.ke

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on auto_size_text_plus