Prevent automirror Jetpack compose

Viewed 20

This is how I am using Icons in my app

Icon(
        Icons.Filled.ArrowBackIos,
        contentDescription = "Arrow Back",
        modifier = Modifier.clickable {
          if (canGoBackward(week)) {
            onPreviousWeekClick()
          }
        })

Is there a way to to prevent this icon from automirroring in RTL ?

I tried doing the below but it didn't work

Icon(
        rememberVectorPainter(Icons.Filled.ArrowBackIos, autoMirror = false),
        contentDescription = "Arrow Back",
        modifier = Modifier.clickable {
          if (canGoBackward(week)) {
            onPreviousWeekClick()
          }
        })
0 Answers
Related