max_size_text 1.0.10
max_size_text: ^1.0.10 copied to clipboard
Maximize size of Flutter text given available real-estate, with the intention of filling a space.
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(
text:
'The Courage to Be Disliked: The Japanese Phenomenon That Shows You How to Change Your Life and Achieve Real Happiness',
// '404: /phone',
textStyle: new TextStyle(
color: Colors.red[800],
fontSize: 32,
fontFamily: 'Roboto'))))));
}
}