Date picker and date range picker text styling is ...
# compose-android
r
Date picker and date range picker text styling is not possible. We can only provide the colors. Has anyone copied the source and modified the styling. Our designers have come up with custom styling. I tried copying the source code but some pieces are internal. So has any one tried this??
s
it takes color from your theme, so provide those colors in your theme. If the Date colors don't match your overall theme, create a new theme just for Date
r
i have a custom theme as well. Colors i can customize. I want the font styling customization
s
typography also is taken from theme. so customize it in your theme
s
DateRangePicker is using ProvideTextStyle. You can pass any TextStyle to that.
r
Thanks will try that
MaterialTheme( typography = MaterialTheme.typography.copy( bodyLarge = TextStyle(fontSize = 10.sp) ) ) { // Date picker code } this worked