• Samir Basnet

    Samir Basnet

    1 year ago
    Is it possible to change OutlinedTextField height without cutting the content??
    Samir Basnet
    Dominaezzz
    2 replies
    Copy to Clipboard
  • Orhan Tozan

    Orhan Tozan

    1 year ago
    I'm currently on Kt 1.4.31 and getting the following error: `This version (1.0.0-alpha13) of the Compose Compiler requires Kotlin version 1.4.30 but you appear to be using Kotlin version 1.4.31 which is not known to be compatible. Please fix your configuration (or
    suppressKotlinVersionCompatibilityCheck
    but don't say I didn't warn you!).` Is it recommended to use
    suppressKotlinVersionCompatibilityCheck
    or revert from 1.4.31 to 1.4.30?
    Orhan Tozan
    Colton Idle
    +2
    10 replies
    Copy to Clipboard
  • giorgos

    giorgos

    1 year ago
    Material text field has a prefix text property:
    app:prefixText
    I cannot find it in
    androidx.compose.material.TextField
    Could it be it is not implemented yet?
    giorgos
    Kevin Aude
    2 replies
    Copy to Clipboard
  • u

    Utkarsh Tiwari

    1 year ago
    Is there any way to make the ModalDrawer pull out from the right side of the screen?
    u
    Kevin Aude
    +1
    9 replies
    Copy to Clipboard
  • Adriano Celentano

    Adriano Celentano

    1 year ago
  • grandstaish

    grandstaish

    1 year ago
    Does anyone know why the source code for things in
    androidx.compose.ui.input.pointer
    don’t show up in Android Studio? Almost all other compose modules download and show sources correctly.
    grandstaish
    1 replies
    Copy to Clipboard
  • n

    Nikola Drljaca

    1 year ago
    I'm working on a project in Compose and running the app on a device. I'm getting this weird error which causes the app to crash if the app is open and I'm editing the code
    JNI DETECTED ERROR IN APPLICATION: JNI CallVoidMethodV called with pending exception java.lang.NoSuchMethodError: no non-static method "Landroidx/compose/runtime/HotReloader$Companion;.saveStateAndDispose(Ljava/lang/Object;)V"
    . The trace is pretty extensive after that first line. Is anyone else having this issue? Been googling a bit but can't find anything.
    n
    Archie
    +3
    6 replies
    Copy to Clipboard
  • o

    Olivier Patry

    1 year ago
    If I want to display a master/detail on tablet with Jetpack Compose, do you have some guidelines? For now, I went to something like:
    @Composable
    fun MainLayout(catRepository: CatRepository = (CatRepository((FakeCatDataSource())))) {
        val catsViewModel = viewModel<CatsViewModel>(factory = CatsViewModelFactory(catRepository))
        Surface(color = MaterialTheme.colors.background) {
            when {
                !booleanResource(R.bool.is_tablet) -> MainLayoutTabletPhone(catsViewModel)
                booleanResource(R.bool.is_portrait) -> MainLayoutTabletPortrait(catsViewModel)
                else -> MainLayoutTabletLandscape(catsViewModel)
            }
        }
    }
    o
    6 replies
    Copy to Clipboard
  • Timon Bohn

    Timon Bohn

    1 year ago
    Hey folks! Any idea on how to properly auto format decimal numbers inside a TextField based on the locale? Right now we figured out a half working solution using number formatter. But the cursor does not stay at the end of the number and periodically moves one step further to the front.
    Timon Bohn
    d
    4 replies
    Copy to Clipboard
  • d

    Daniel

    1 year ago
    I'm planning on filing a bug suggesting that
    PointerInputScope.awaitFirstDown
    should have an inverse, but I wanted to check if anyone saw anything obvious I was missing first.
    private suspend fun PointerInputScope.awaitChangedToUp(id: PointerId) {
        awaitPointerEventScope {
            do {
                val event = awaitPointerEvent().changes.fastFirstOrNull { it.id == id }
                event?.consumeAllChanges()
            } while (event?.changedToUp() != true)
        }
    }
    d
    Tash
    22 replies
    Copy to Clipboard