Bruno Leroux 97ca57cf08
Fix DropdownButtonFormField clips text when large text scale is used (#159975)
## Description

This PR fixes `DropdownButtonFormField` text being clipped when using a
large text scale.

Before:


![image](https://github.com/user-attachments/assets/6c4deed2-eb61-4c0a-912e-dba364013038)

After:


![image](https://github.com/user-attachments/assets/1dee5cda-9885-47c1-92a6-afbbc2312266)


This extend the fix from https://github.com/flutter/flutter/pull/107201
which does not work properly with Material 3 (because of
TextStyle.height being set for M3 default text styles).

## Related Issue

Fixes [DropdownButtonFormField clips text when large text scale is used
and useMaterial3 is
true](https://github.com/flutter/flutter/issues/159971)

## Tests

Adds 1 test.
Updates 1 test.
2025-01-23 05:38:20 +00:00
..
2025-01-22 21:52:11 +00:00
2024-12-30 18:31:41 +00:00
2024-12-27 00:06:41 +00:00
2024-12-19 20:06:21 +00:00
2024-12-30 18:31:41 +00:00
2025-01-22 21:52:11 +00:00
2024-12-19 20:06:21 +00:00