• Nurseyit Tursunkulov

    Nurseyit Tursunkulov

    1 year ago
    Nurseyit Tursunkulov
    p
    +1
    5 replies
    Copy to Clipboard
  • s

    Se7eN

    1 year ago
    @Composable
    fun Main() {
        val state = remember { PaletteState(...) }
        Scaffold(
            topBar = { TopBar(onSave = { viewModel.save(state.toPalette()) } }
        ) {
            ColorWheel(state)
        }
    }
    
    @Composable
    fun ColorWheel(state: PaletteState) {
        val colorWheel = rememeber { ColorWheel(...) }
        state.colors = colorWheel.getColors()
    
        Content(colorWheel)
    }
    I have a
    state
    that needs to be updated by a child composable. Is this the right way to do it?
    s
    sindrenm
    +2
    17 replies
    Copy to Clipboard
  • Mehdi Haghgoo

    Mehdi Haghgoo

    1 year ago
    Is there a technical reason Compose is not supported on stable A.S. versions?
    Mehdi Haghgoo
    sindrenm
    +2
    9 replies
    Copy to Clipboard
  • a

    alorma

    1 year ago
    Hi. How can add bold to a part of a text? (the
    @nosferatu95
    part
    a
    Vitor Prado
    3 replies
    Copy to Clipboard
  • Halil Ozercan

    Halil Ozercan

    1 year ago
    I'm experiencing an issue while using navigation-compose. I have a very simple setup.
    HomePage
    composable receives a
    HomeViewModel
    and a
    HomeState
    object (caller passes
    state.value
    ) as its arguments.
    HomePage
    also hosts a NavHost which includes 2 different routes(
    SettingsPage
    ,
    ProfilePage
    ) When I pass a field from HomeState like
    homeState.username
    to one of the composables defined in NavHost, it does not work. State changes do not reflect on children pages of
    HomePage
    . However, carrying
    homeViewModel
    and
    homeState
    directly into
    HomePage
    composable, fixes this issue.
    Halil Ozercan
    Adam Powell
    7 replies
    Copy to Clipboard
  • a

    alorma

    1 year ago
    How To change ripple color of a Card?
    a
    f
    4 replies
    Copy to Clipboard
  • tylerwilson

    tylerwilson

    1 year ago
    Curious about drag and drop story in Compose, if any.
    tylerwilson
    f
    4 replies
    Copy to Clipboard
  • b

    buszi0809

    1 year ago
    How to force text field to lose focus? I can't exit edit state after ime action etc
    b
    1 replies
    Copy to Clipboard
  • Marcin Środa

    Marcin Środa

    1 year ago
    Is it possible to use layer-list drawable with Image?
    vectorResource
    is showing empty image
    Marcin Środa
    1 replies
    Copy to Clipboard
  • Shakil Karim

    Shakil Karim

    1 year ago
    Is there any existing API through which we can achieve a flow-like layout, Where items shift to the next line if there is not enough space available?
    Shakil Karim
    Dominaezzz
    +4
    9 replies
    Copy to Clipboard