Fixed
Status Update
Comments
ap...@google.com <ap...@google.com> #2
Project: platform/frameworks/support
Branch: androidx-main
commit cf6209de2224c1b2089869ca6121843fc6769223
Author: ds <oshimanskaia@google.com>
Date: Thu Aug 26 13:42:57 2021
Add experimental TextFieldColorsWithIcons
Relnote: Added experimental TextFieldColorsWithIcons interface, extending TextFieldColors to provide InteractionSource to the leadingColor and trailingColor. This enables modifying the appearance of TextField according to the focus state.
Test: demo, manually
Fixes: 198402662
Change-Id: I6692391098f7840a491bd175da2dfde116718bbc
M compose/material/material/api/public_plus_experimental_current.txt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextFieldDefaults.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextFieldImpl.kt
https://android-review.googlesource.com/1810198
Branch: androidx-main
commit cf6209de2224c1b2089869ca6121843fc6769223
Author: ds <oshimanskaia@google.com>
Date: Thu Aug 26 13:42:57 2021
Add experimental TextFieldColorsWithIcons
Relnote: Added experimental TextFieldColorsWithIcons interface, extending TextFieldColors to provide InteractionSource to the leadingColor and trailingColor. This enables modifying the appearance of TextField according to the focus state.
Test: demo, manually
Fixes: 198402662
Change-Id: I6692391098f7840a491bd175da2dfde116718bbc
M compose/material/material/api/public_plus_experimental_current.txt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextFieldDefaults.kt
M compose/material/material/src/commonMain/kotlin/androidx/compose/material/TextFieldImpl.kt
Description
Currently TextFieldColors interface doesn't provide any possibility for devs to change leading or trailing icon color according to the state of interactionSource. I suggest to pass interactionSource parameter (similarly as in labelColor) to leadingIconColor and trailingIconColor methods.