migrate Flutter 3.7.0

This commit is contained in:
lollipopkit
2023-01-26 14:37:52 +08:00
parent 9c8f9c3b9f
commit 0ecc321115
15 changed files with 339 additions and 228 deletions

View File

@@ -35,7 +35,7 @@ extension StringX on String {
// Build the textspan
var span = TextSpan(
text: 'A' * 7 + substring(length - len),
style: style ?? Theme.of(context).textTheme.bodyText2,
style: style ?? Theme.of(context).textTheme.bodyMedium,
);
// Use a textpainter to determine if it will exceed max lines