text_sizer_plus 1.0.5 text_sizer_plus: ^1.0.5 copied to clipboard
Flutter widget that automatically resizes text to fit perfectly within its bounds.
import 'package:flutter/material.dart';
import 'package:text_sizer_plus/text_sizer_plus.dart';
void main() {
runApp(App());
}
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
body: Center(
child: SizedBox(
width: 200,
height: 140,
child: TextSizerPlus(
'This string will be automatically resized to fit in two lines.',
style: TextStyle(fontSize: 30),
maxLines: 2,
),
),
),
),
);
}
}