Am I going crazy, or is there no way to set up mat...
# compose
c
Am I going crazy, or is there no way to set up material tabs in compose with one color for the content (text + icon) and a different color for the tab indicator itself?
I thought this would've worked?
Copy code
TabRow(
    selectedTabIndex = state,
    backgroundColor = Color.White,
    contentColor = Color.Black,
    indicator = { tabPositions ->
        TabRowDefaults.Indicator(
            color = Color.Red
        )
    },
)
but my entire tab is red instead lol
a
Check the default composable lambda for
indicator
parameter. You are missing the modifier.
b
Copy code
TabRowDefaults.Indicator(modifier = Modifier.tabIndicatorOffset(tabPositions[selectedTabIndex]), color = Color.Red)
c
so weird. I would ahve thought the defaults would have filled that in for me i guess. but yeah that was it.
­čĄŽ
What would I do without this slack channel? THANK YOU!