@@ -1504,20 +1504,23 @@ void main() {
1504
1504
});
1505
1505
1506
1506
group ('Material3 - InputDecoration helper/counter/error' , () {
1507
- // Overall height for InputDecorator (filled or outlined) is 76dp on mobile:
1507
+ // Overall height for InputDecorator (filled or outlined) is 80dp on mobile:
1508
1508
// 8 - top padding
1509
1509
// 12 - floating label (font size = 16 * 0.75, line height is forced to 1.0)
1510
1510
// 4 - gap between label and input
1511
1511
// 24 - input text (font size = 16, line height = 1.5)
1512
1512
// 8 - bottom padding
1513
- // 4 - gap above helper/error/counter
1513
+ // 8 - gap above supporting text
1514
1514
// 16 - helper/counter (font size = 12, line height is 1.5)
1515
1515
const double topPadding = 8.0 ;
1516
1516
const double floatingLabelHeight = 12.0 ;
1517
1517
const double labelInputGap = 4.0 ;
1518
1518
const double inputHeight = 24.0 ;
1519
1519
const double bottomPadding = 8.0 ;
1520
- const double helperGap = 4.0 ;
1520
+ // TODO(bleroux): make the InputDecorator implementation compliant with M3 spec by changing
1521
+ // the helperGap to 4.0 instead of 8.0.
1522
+ // See https://github.com/flutter/flutter/issues/144984.
1523
+ const double helperGap = 8.0 ;
1521
1524
const double helperHeight = 16.0 ;
1522
1525
const double containerHeight = topPadding + floatingLabelHeight + labelInputGap + inputHeight + bottomPadding; // 56.0
1523
1526
const double fullHeight = containerHeight + helperGap + helperHeight; // 80.0 (should be 76.0 based on M3 spec)
0 commit comments