• David Attias

    David Attias

    1 year ago
    Since Compose Navigation added NavOptions in alpha02, I'm trying to use it but I dont understand how can I specify a popUpTo destination as it requires an Id(Int) and we only have route(string) in the Compose navigation graph. Thanks for your help guys!
    David Attias
    i
    +1
    6 replies
    Copy to Clipboard
  • Yann Badoual

    Yann Badoual

    1 year ago
    Did something change in alpha07 for ViewModel and hilt usage? In an
    AndroidEntrypoint
    annotated activity, I'm now getting
    has no zero argument constructor
    when using the
    viewModel()
    composable to retrieve an instance (the ViewModel's constructor does have the
    ViewModelInject
    annotation)
    Yann Badoual
    i
    5 replies
    Copy to Clipboard
  • r

    redrield

    1 year ago
    How can I get the current orientation of the device in a composable?
    r
    i
    3 replies
    Copy to Clipboard
  • r

    redrield

    1 year ago
    E/AndroidRuntime: FATAL EXCEPTION: main
        Process: com.redrield.androidds, PID: 15301
        java.lang.NoSuchFieldError: No field Companion of type Landroidx/compose/runtime/SlotTable$Companion; in class Landroidx/compose/runtime/SlotTable; or its superclasses (declaration of 'androidx.compose.runtime.SlotTable' appears in /data/app/~~58hYPPzhGRjb56GwSeeO0g==/com.redrield.androidds-WjdLhG2Oom4gM1SnqQGjqg==/base.apk)
            at androidx.compose.material.MaterialThemeKt.MaterialTheme(MaterialTheme.kt:112)
    Any idea why this would be happening? It started after I added compose-navigation, even if I've cut out all reference to it where the theme composable is being called, in fact there's no content there at all
    r
    b
    6 replies
    Copy to Clipboard
  • r

    redrield

    1 year ago
    implementation 'androidx.compose.ui:ui:1.0.0-alpha07'
        // Tooling support (Previews, etc.)
        implementation 'androidx.ui:ui-tooling:1.0.0-alpha06'
        // Foundation (Border, Background, Box, Image, Scroll, shapes, animations, etc.)
        implementation 'androidx.compose.foundation:foundation:1.0.0-alpha06'
        // Material Design
        implementation 'androidx.compose.material:material:1.0.0-alpha06'
        // Material design icons
        implementation 'androidx.compose.material:material-icons-core:1.0.0-alpha06'
        implementation 'androidx.compose.material:material-icons-extended:1.0.0-alpha06'
        // Integration with observables
        implementation 'androidx.compose.runtime:runtime-livedata:1.0.0-alpha06'
        implementation "androidx.navigation:navigation-compose:1.0.0-alpha02"
    compiler extension version 1.0.0-alpha06
    r
    i
    +1
    6 replies
    Copy to Clipboard
  • k

    Kshitij Patil

    1 year ago
    In Jetchat, when the Selector is Expanded, if I put app in the background and reopen it, keyboard is also shown. Is this expected behaviour?
    k
    jim
    2 replies
    Copy to Clipboard
  • s

    Se7eN

    1 year ago
    Anyone made a color wheel with compose? I'd love to check it out
    s
    v
    3 replies
    Copy to Clipboard
  • Eric Ampire [MOD]

    Eric Ampire [MOD]

    1 year ago
    Hello, what is the equivalent of fitSystemWindows in Jetpack Compose ?
    Eric Ampire [MOD]
    nickbutcher
    2 replies
    Copy to Clipboard
  • s

    Se7eN

    1 year ago
    How can I make a sweep gradient?
    s
    Nader Jawad
    3 replies
    Copy to Clipboard
  • m

    Mihai Hrincescu

    1 year ago
    Hello, does anyone know why the compose canvas does not have a function to draw text similar to the native canvas? Is it not implemented yet or we should just use the
    drawContext.canvas.nativeCanvas()
    ?
    m
    Siyamed
    10 replies
    Copy to Clipboard