android - Kotlin Mulitplatform Text Accessibility Setting Management - Stack Overflow

admin2025-04-15  0

I'm currently working on a kotlin multiplatform application targeting Android and iOS. A tester for my app recently reported an issue where if the text size within the device's accessibility settings is modified, it will affect all compose multiplatform Text components. I would like to modify this behavior or disable it altogether.

Defining staticfontSize within each Text component, however the accessibility settings still seem to override this behavior.

Text(
                       "This is Some Text",
                       color = Color.Black,
                       style = MaterialTheme.typography.h4.copy(
                           fontFamily = FontFamily.SansSerif,
                           fontWeight = FontWeight.Bold,
                           fontSize = 16.sp
                       )
                   )
转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1744687184a261210.html

最新回复(0)