
## Description This PRs makes the label vertical position depend on visual density for filled text field. Previously, for M2 and M3, the label vertical offset was always the same (12 on M2, 8 and M3) despite different visual density configuration. This was noticable on desktop and can lead to weird rendering especially on M3 where line height makes the cursor taller. Screenshots for a filled text field: | | Before | After | |--------|--------|--------| |M3 macOs|  |  | |M2 macOs|  |  | </details> ## Related Issue Fixes https://github.com/flutter/flutter/issues/141354 ## Tests Adds 2 tests, updates 2 tests.