@@ -4490,23 +4490,20 @@ void main() {
44904490 });
44914491
44924492 group ('Material3 - InputDecoration helper/counter/error' , () {
4493- // Overall height for InputDecorator (filled or outlined) is 80dp on mobile:
4493+ // Overall height for InputDecorator (filled or outlined) is 76dp on mobile:
44944494 // 8 - top padding
44954495 // 12 - floating label (font size = 16 * 0.75, line height is forced to 1.0)
44964496 // 4 - gap between label and input
44974497 // 24 - input text (font size = 16, line height = 1.5)
44984498 // 8 - bottom padding
4499- // 8 - gap above supporting text
4499+ // 4 - gap above helper/error/counter
45004500 // 16 - helper/counter (font size = 12, line height is 1.5)
45014501 const double topPadding = 8.0 ;
45024502 const double floatingLabelHeight = 12.0 ;
45034503 const double labelInputGap = 4.0 ;
45044504 const double inputHeight = 24.0 ;
45054505 const double bottomPadding = 8.0 ;
4506- // TODO(bleroux): make the InputDecorator implementation compliant with M3 spec by changing
4507- // the helperGap to 4.0 instead of 8.0.
4508- // See https://github.com/flutter/flutter/issues/144984.
4509- const double helperGap = 8.0 ;
4506+ const double helperGap = 4.0 ;
45104507 const double helperHeight = 16.0 ;
45114508 const double containerHeight = topPadding + floatingLabelHeight + labelInputGap + inputHeight + bottomPadding; // 56.0
45124509 const double fullHeight = containerHeight + helperGap + helperHeight; // 80.0 (should be 76.0 based on M3 spec)
0 commit comments