macos_ui icon indicating copy to clipboard operation
macos_ui copied to clipboard

[MacosTextField] Introduce a `MacosTextFieldTheme` and `MacosTextFieldThemeData`

Open GroovinChip opened this issue 3 years ago • 3 comments

GroovinChip avatar Apr 22 '22 20:04 GroovinChip

I've contemplated this further, and it occurs to me that the way the material library handles customization of TextField style is via InputDecoration. Perhaps instead of having a MacosTextFieldThemeData we should just do something similar? We'd have to do some refactoring, since we handle styling via various private variables.

What do you think @whiplashoo?

GroovinChip avatar May 03 '22 16:05 GroovinChip

You are probably referring to this implementation style?. As I understand, they merge an InputDecorationTheme and the constructor-provided decoration property, to get the final input decoration.

whiplashoo avatar May 05 '22 06:05 whiplashoo

Something like that, yeah.

GroovinChip avatar May 05 '22 14:05 GroovinChip