Vaibhav Jaiswal
04/27/2024, 9:26 AMMaterialTheme.colorScheme
everywhere
When i tried to add cupertino, i see it takes Cupertino Theme which has a different set of colors
How can i make the components, like buttons, navbar, slider etc have the same color as material one, without manually configuring the colors of the component like this everywhere
AdaptiveSwitch(checked = true, onCheckedChange = { }){
cupertino {
this.colors = CupertinoSwitchDefaults.colors(
thumbColor = MaterialTheme.colorScheme.background
)
}
material {
this.colors = SwitchDefaults.colors().copy(
)
}
}
Alexander Zhirkevich
04/27/2024, 9:46 AMMySwitch
composable, configure everything once and use it everywhere in your app.
No need to tag me in public channels, you can just DM meVaibhav Jaiswal
04/27/2024, 9:52 AM