-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.
Description
In M3, when using a TextField in an error state, the suffix icon does not take error state colors, as expected.
The spec dictates that suffix icons should support error states (though not the prefix icon):

Currently, the InputDecorator uses iconTheme for the icons. In M3, if an IconButton widget is used as a suffix icon (which is more likely), the color resolves for iconTheme, but not iconButtonTheme. So, if an app-wide IconButtonTheme override is applied, the error state does not resolve as expected:

Dartpad available at https://dartpad.dev/?id=4be14c02467d4ab583fbfa68b9016d00&channel=master.
The solution will involve supporting IconButtonTheme values in the input decorator.
Metadata
Metadata
Assignees
Labels
f: material designflutter/packages/flutter/material repository.flutter/packages/flutter/material repository.