max_size_text 2.0.12 copy "max_size_text: ^2.0.12" to clipboard
max_size_text: ^2.0.12 copied to clipboard

Maximize size of Flutter text given available real-estate, with the intention of filling a space.

example/lib/main.dart

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

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
        home: SafeArea(
            child: Scaffold(
                body: Center(
                    child: MaxSizeText(
                        'The Courage to Be Disliked: The Japanese Phenomenon That Shows You How to Change Your Life and Achieve Real Happiness',
                        textStyle: new TextStyle(
                            color: Colors.red[800],
                            fontSize: 32,
                            fontFamily: 'Roboto'))))));
  }
}
1
likes
140
pub points
30%
popularity

Publisher

verified publisheronlyup.com

Maximize size of Flutter text given available real-estate, with the intention of filling a space.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on max_size_text