• Rodri Represa

    Rodri Represa

    2 years ago
    Do I have to import any specific library to retrieve a ViewModel into a @Composable function? I'm trying to retrieve it and the app crashes
    val viewModel: LoginViewModel by viewModel()
    Rodri Represa
    Colton Idle
    +2
    5 replies
    Copy to Clipboard
  • s

    Se7eN

    2 years ago
    I have a
    LazyColumnFor
    that displays 20 items. The items consist of an image and some text. When displaying 20 items with each image of size 128kb, it lags like hell. Is this a bug or am I missing something? Also, it works totally fine when displaying only text.
    s
    manueldidonna
    +6
    17 replies
    Copy to Clipboard
  • Henning B

    Henning B

    2 years ago
    I am having a problem in the "Layouts in Jetpack Compose" Codelab. Chapter 6 "Create your custom layout". You are supposed to map a List of Measurables to a list of Placeables. The
    map
    operator doesn't work for me though. I am getting the error:
    Unresolved reference. None of the following candidates is applicable because of receiver type mismatch: ...
    .fastMap
    works though. Why is this happening? Should I report this? Link to codelab: https://developer.android.com/codelabs/jetpack-compose-layouts#5
    Henning B
    2 replies
    Copy to Clipboard
  • Neal Sanche

    Neal Sanche

    2 years ago
    I'm trying to use Canvas in compose, and am seeing what looks like old state in my DrawScope. I sort of expected that the canvas would be cleared each time. Is there a way for me to clear the draw scope, so that it just repaints the whole canvas?
    Neal Sanche
    2 replies
    Copy to Clipboard
  • Alejandro Rios

    Alejandro Rios

    2 years ago
    Hello, I was doing the
    Migrating to Jetpack Compose
    codelab then on the
    Testing
    tab it mentions that you can use
    findByText
    to validate a composable String the strange thing is that function doesn't appear
    Alejandro Rios
    p
    2 replies
    Copy to Clipboard
  • Nat Strangerweather

    Nat Strangerweather

    2 years ago
    Hi, I followed the Jetpack Compose Theming Codelabs tutorial to the letter but my status bar is still purple. Any ideas what I need to do? I would like it to be white in LightTheme and black in DarkTheme...
    Nat Strangerweather
    manueldidonna
    +1
    4 replies
    Copy to Clipboard
  • z

    zoha131

    2 years ago
    Is it possible to create a ViewModel inside a Compose function? What would be the approach in Compose only app?
    z
    a
    +1
    6 replies
    Copy to Clipboard
  • tcracknell

    tcracknell

    2 years ago
    Hello! The latest Jetpack Compose minor release, alpha03, has just dropped! You can get it now on Google’s Maven Repository. Release notes are available at https://developer.android.com/jetpack/androidx/versions/all-channel. As always, feedback is welcome at https://issuetracker.google.com/issues/new?component=612128.
    tcracknell
    1 replies
    Copy to Clipboard
  • 3bdoelnaggar

    3bdoelnaggar

    2 years ago
    I want to change layout directions how can I do that thanks
    3bdoelnaggar
    v
    4 replies
    Copy to Clipboard
  • d

    dagomni

    2 years ago
    Any ETA on official navigation/backstack? 😅
    d
    i
    +4
    28 replies
    Copy to Clipboard