Skip to content

Commit bb86e31

Browse files
committed
TextField improvements
- Fix shrink-wrapping conflict with expands property. - Fix text field model not calculating text field height properly for shrink-wrapping. - Allow min lines and max lines input fields to clear. - Fix shrink-wrap height calculation being affected by isDense property.
1 parent bc55927 commit bb86e31

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/src/api/utils.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ abstract class ITextSizeCalculator {
4343
/// Returns The distance to the [baseline] of a defined [TextNode].
4444
/// The details are dependant on the implementation.
4545
double computeDistanceToActualBaseline(CTextBaseline baseline);
46+
47+
/// Returns the line height of a single line of text.
48+
double getLineHeight();
4649
}
4750

4851
/// Defines different styling options for a widget.

0 commit comments

Comments
 (0)