• joney

    joney

    1 year ago
    Is it possible to define
    @Composable
    s in a kotlin multiplatform library-module and (re-)use those in android app-modules of the same project? I get these errors when building the project:
    Caused by: org.jetbrains.kotlin.codegen.CompilationException: Back-end (JVM) Internal error: Couldn't inline method call 'remember' into
    @androidx.compose.runtime.Composable public fun [...]
    joney
    Timo Drick
    2 replies
    Copy to Clipboard
  • David Attias

    David Attias

    1 year ago
    In the Compose tutorials, it is advised to use State in the ViewModel as much as possible because it makes the code simpler and it's right BUT is State lifecycle aware like LiveData ? Can we achieve the same ?
    David Attias
    Halil Ozercan
    2 replies
    Copy to Clipboard
  • nrobi

    nrobi

    1 year ago
    Having trouble using
    SwipeToRefresh()
    from JetNews with
    LazyColumnFor
    , more specifically doesn’t detect the swipe (just like I wouldn’t have the SwipeToRefresh component). I’m guessing it’s because the
    swipeable()
    setup conflicts somehow with the
    LazyColumnFor
    . Any ideas where should I look for?
    nrobi
    v
    +1
    4 replies
    Copy to Clipboard
  • n

    Nraghuramireddy

    1 year ago
    Hey Folks, We are planning to develop a brand new Kotlin based Android project using Jetpack Compose and we are going to use bottom navigation view, drawer view, navigation components, co-ordinate layout kind of effects, paging 3.0 etc. I see that it is still in alpha and may release in 2021. We may release our app in Q2 2021, is it good idea to consider Jetpack Compose for development or we need to go with traditional layout based UI? Is Jetpack Compose supports all the components? Are there any apps in the playstore which are Jetpack Compose based? Any help will be much appreciated. Thanks.
    n
    Jeremy
    6 replies
    Copy to Clipboard
  • l

    len

    1 year ago
    Made this color picker today in just 200 lines (there could be less if I didn't need some color conversion utils). It can be updated with touch events or hex input
    l
    Alejandro Rios
    5 replies
    Copy to Clipboard
  • j

    Joost Klitsie

    1 year ago
    Hi guys! On my android api 23 device I cannot put in capital characters. If I push the shift character, a
    \u0000
    is inserted and the keyboard switches right away to lowercase characters. Is there already a bug for this?
    j
    2 replies
    Copy to Clipboard
  • Vsevolod Ganin

    Vsevolod Ganin

    1 year ago
    I think
    RadialGradient
    is not working properly as of alpha06. I want to draw a simple circle that have white color from center to
    0.5 * radius
    and then have a uniform blend from white to black from
    0.5 * radius
    to
    radius
    . What I did is
    Canvas(modifier = Modifier.fillMaxSize()) {
        drawCircle(
            brush = RadialGradient(
                0.0f to Color.White,
                0.5f to Color.White,
                1.0f to Color.Black,
                centerX = center.x,
                centerY = center.y,
                radius = size.width
            )
        )
    }
    This code displays the whole circle in white.
    Vsevolod Ganin
    Nader Jawad
    5 replies
    Copy to Clipboard
  • Luis Daivid

    Luis Daivid

    1 year ago
    I added bottomNavigation to scaffold. However, the bottom of the content of the scaffold is covered by the bottom navigation. What should I do?
    Luis Daivid
    flosch
    +1
    6 replies
    Copy to Clipboard
  • k

    Kshitij Patil

    1 year ago
    How to put compose preview in a landscape mode? I've set the
    widthDp
    accordingly with
    showDecoration=true
    but still the view looks like a portrait mode only
    k
    1 replies
    Copy to Clipboard
  • gsala

    gsala

    1 year ago
    Using the new navigation for Compose, can I use
    Parcelable
    arguments or is it only uri-based arguments that can be parse to primitive types?
    gsala
    g
    +2
    8 replies
    Copy to Clipboard