• Orhan Tozan

    Orhan Tozan

    11 months ago
    I think the Modifier system is really clever designed
    Orhan Tozan
    Klaas Kabini
    2 replies
    Copy to Clipboard
  • m

    Mike Speed

    11 months ago
    BadgeBox(badgeContent = { Text(value) }) {
             //whatever
         }
    I have a
    BadgeBox
    like this, but if the value is
    0
    , I want to badge to be hidden. If I pass null to
    badgeContent
    , the circle still shows but with nothing in it. How do I hide it completely while still showing the inner content?
    m
    a
    +1
    6 replies
    Copy to Clipboard
  • b

    bodo

    11 months ago
    Hi. Can you please tell me why padding is not working in this composable:
    Surface(
        modifier = Modifier.padding(10.dp)
        shape = AppTheme.shapes.medium,
        color = AppTheme.colors.surface
      ) {
      content()
    }
    It is only working when i add a box around the content(). is this the correct way to do it???
    Surface(
        shape = AppTheme.shapes.medium,
        color = AppTheme.colors.surface
      ) {
      Box(modifier = Modifier.padding(10.dp)) {
        content()
      }
    }
    b
    1 replies
    Copy to Clipboard
  • Cicero

    Cicero

    11 months ago
    Hello, so, I'm curious about architecture. We are now wrapping our UI with something that handles our viewmodel and states and then providing the UI with information rather then passing in the viewmodel. Right? So, starting here how do we handle when there are too many parameters being passed to the UI, like 20? In my mind, when I read trough this case I would leave it as is because it was pretty much explanatory. I also had an option to break it in several smaller UI components but it looked off and ugly (like, let's say, header body and footer) How are you handling your viewmodel and UI when your UI needs to receive too many parameters?
    Cicero
    Damian Zawadzki
    +5
    27 replies
    Copy to Clipboard
  • Damian Zawadzki

    Damian Zawadzki

    11 months ago
    Guys how would you handle mixing callback based and hosted object based approaches? I got some sample code where I've started with object like here:https://github.com/androidx/androidx/blob/androidx-main/compose/docs/compose-api-guidelines.md#hoisted-state-types But I want to use this composable with callback after all. Sample in thread. I've used launched effect to translate changes of property to callback. Do you have any solutions / patterns to handle case like this?
    Damian Zawadzki
    2 replies
    Copy to Clipboard
  • Mahmoud Alim

    Mahmoud Alim

    11 months ago
    hello everyone, does anyone came across a proper solution to customize ripple effect with rounded corners as it’s container let’s say a Box with background rounded shape corners ?
    Mahmoud Alim
    Chris Sinco [G]
    +2
    7 replies
    Copy to Clipboard
  • a

    aherbel

    11 months ago
    hi everyone… just a question which I didn’t find any answers in the internet… is there a way to do navigation in Compose without the Jetcpack Compose Navigation component? I would like to learn the “native” way to do navigation in Compose before moving to Navigation component… I didn’t find any articles/questions in StackOverflow or anything else that talks about this
    a
    k
    +3
    12 replies
    Copy to Clipboard
  • Shabinder Singh

    Shabinder Singh

    11 months ago
    Hello Everyone, Few months earlier when Compose was still alpha and a lot of performance improvements were being made, two things were there I wanted to know about and whats their status Inlining Composable components was also being talked about , what happened to that ? • Multi-threaded Composition ? 🤔
    Shabinder Singh
    Zach Klippenstein (he/him) [MOD]
    +2
    5 replies
    Copy to Clipboard
  • Tgo1014

    Tgo1014

    11 months ago
    What’s the proper way to show an one time even? For example a toast from a
    SharedFlow
    ?
    Tgo1014
    Csaba Kozák
    +1
    7 replies
    Copy to Clipboard
  • Filippo Vigani

    Filippo Vigani

    11 months ago
    Hey guys, I was fiddling around with compose layouts(such as
    Row
    ,
    Column
    ,
    LazyVerticalGrid
    and the accompanist
    FlowRow
    ) trying to achieve something like CSS minmax function for columns. Basically I'd like to lay out a list of elements such that they take all the available space, as in visually they always occupy the whole width of the screen, but are still constrained by a min size and a max size. Is there any way to achieve that using Jetpack Compose?
    Filippo Vigani
    2 replies
    Copy to Clipboard