https://kotlinlang.org logo
#android
Title
# android
y

Yudhistira Wibowo

10/03/2023, 9:28 PM
Hello! I am new to Kotlin and Android and I want to use the
WindowWidthSizeClass
class as used in “Reply” app tutorial (https://github.com/android/compose-samples/blob/00fe2156693d381c44efeb202718f3ecb8[…]bdfc61/Reply/app/src/main/java/com/example/reply/ui/ReplyApp.kt), but it seems that I cannot use the class because it is not included in the Compose library. Does anybody have any idea how to fix this? Thank you for any help!
solved 1
By the way, my dependencies are as follows:
i

Ian Lake

10/03/2023, 9:33 PM
You need the
androidx.compose.material3:material3-window-size-class
dependency if you want the window size class APIs
2
👍 1
y

Yudhistira Wibowo

10/03/2023, 9:35 PM
Oh right! Thank you!