This commit is contained in:
rang 2025-12-25 17:47:49 +08:00
parent ead8850b2e
commit 0a26871bb1
6 changed files with 183 additions and 26 deletions

View file

@ -0,0 +1,7 @@
import 'package:flutter/material.dart';
extension TextStyleExtension on TextStyle {
double get calculateHeight {
return (height ?? 0) * (fontSize ?? 0);
}
}