• Kaushalya Pradeep

    Kaushalya Pradeep

    2 years ago
    @romainguy Do you guys have any release plan / ETA for Jetpack Compose? or going with the natural flow?
    Kaushalya Pradeep
    b
    +5
    15 replies
    Copy to Clipboard
  • Subhash

    Subhash

    2 years ago
    Minor help request: I am not being able to scroll the contents. Am I doing something wrong here?@Composable
    fun ArtistsList(artistsLiveData: LiveData<List<Artist>>) {
        val artists = +state { artistsLiveData.value }
        val artistObserver = Observer<List<Artist>> {
            artists.value = it
        }
        +onActive {
            artistsLiveData.observeForever(artistObserver)
        }
        +onDispose {
            artistsLiveData.removeObserver(artistObserver)
        }
        VerticalScroller {
            Column(modifier = Expanded) {
                artists.value?.forEach {
                    Row(modifier = ExpandedWidth wraps Spacing(all = 8.dp)) {
                        Container(Spacing(4.dp), width = 40.dp, height = 40.dp) {
                            val image = +state<Image?> { null }
                            prepareImage(url = it.picture_small, state = image)
                            image.value?.let {
                                DrawImage(image = it)
                            }
                        }
                        Text(
                            text = it.name,
                            modifier = ExpandedWidth,
                            style = (+ambient(Typography)).body1
                        )
                    }
                }
            }
        }
    }
    Subhash
    Zsolt
    3 replies
    Copy to Clipboard
  • Ian Warwick

    Ian Warwick

    2 years ago
    did we just get a new release? 😄 🎆
    Ian Warwick
    c
    10 replies
    Copy to Clipboard
  • Ian Warwick

    Ian Warwick

    2 years ago
    e: /Users/ian.warwick/Documents/sdev/memset/router/src/main/java/com/citizenwarwick/memset/router/Router.kt: (94, 32): Using 'unaryPlus(): T' is an error. The unary plus for effects is no longer needed. Remove it.
    Ian Warwick
    b
    +2
    19 replies
    Copy to Clipboard
  • tcracknell

    tcracknell

    2 years ago
    Hello! I'm happy to announce that the Jetpack Compose dev04 drop has just been released! You can get it on Google’s Maven Repository or by upgrading your version in the latest Android Studio canary. Compose is developed in the open, so the latest changes were always available, but we are moving to a continuous release model for binaries to make it easier to dogfood the latest API changes. Release notes are linked at https://developer.android.com/jetpack/compose. Thank you for your continued feedback, and please continue logging issues at https://issuetracker.google.com/issues/new?component=612128!
    tcracknell
    Zach Klippenstein (he/him) [MOD]
    +2
    5 replies
    Copy to Clipboard
  • Egor Trutenko

    Egor Trutenko

    2 years ago
    Hi! Probably was already asked, but I'll try and duplicate: why do we need constraint layout in Compose? Isn't Compose layout system able to flatten complex nested hierarchies?
    Egor Trutenko
    Zach Klippenstein (he/him) [MOD]
    +4
    10 replies
    Copy to Clipboard
  • Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    2 years ago
    As of dev04, I’m getting a compilation error any time any of my composables tries accessing an ambient. Is there any new gradle/compiler configuration we need? Error + stacktrace in thread.
    Zach Klippenstein (he/him) [MOD]
    tcracknell
    6 replies
    Copy to Clipboard
  • Zach Klippenstein (he/him) [MOD]

    Zach Klippenstein (he/him) [MOD]

    2 years ago
    It looks like it’s still not possible to host an Android
    View
    nested inside a compose container, is that true?
    Zach Klippenstein (he/him) [MOD]
    Mihai Popa
    +1
    5 replies
    Copy to Clipboard
  • d

    dimsuz

    2 years ago
    From changelog:
    Added DrawModifier, a modifier type that is allowed to draw on the surface of the modified layout.
    I have a fear that this modifier-stuff has a potential to make API quite messy where you can do everything in modifier and they'll be misused. Like some widget will decide that it wants to draw its content with DrawModifier and I can't theme it. Or it will decide to size itself through modifier constraints in some clever way and won't let me size it in the usual way. etc etc Tell me I'm wrong! 😃
    d
    r
    5 replies
    Copy to Clipboard
  • c

    codeslubber

    2 years ago
    Looks like
    HeightSpacer
    and
    WidthSpacer
    are gone in 04? cannot find info on their replacements..
    c
    Mihai Popa
    3 replies
    Copy to Clipboard