官方文档:https://pub.dev/packages/auto_size_text
作用:可自动调整文本大小以使其完全适合其边界
1.在 pubspec.yaml 中添加 auto_size_text 包扩展
2.用法:
AutoSizeText(
'The text to display',
style: TextStyle(fontSize: 20),
maxLines: 2,
官方文档:https://pub.dev/packages/auto_size_text
作用:可自动调整文本大小以使其完全适合其边界
1.在 pubspec.yaml 中添加 auto_size_text 包扩展
2.用法:
AutoSizeText(
'The text to display',
style: TextStyle(fontSize: 20),
maxLines: 2,