• Ian Warwick

    Ian Warwick

    1 year ago
    hey folks, what is the best "compose" way of calling suspended functions to return data for display, should I still use the
    ViewModel
    approach or is there a better way that still has the same benefits (such as surviving state changes) of using VM approach?
    Ian Warwick
    Cyril Find
    2 replies
    Copy to Clipboard
  • lewis

    lewis

    1 year ago
    Intermittently when I open my app from the background it crashes, is this a known issue, is there anything I can do to avoid it?
    java.lang.NullPointerException
            at androidx.compose.foundation.gestures.DragGestureDetectorKt.verticalDrag-jO51t88(DragGestureDetector.kt:777)
    lewis
    matvei
    2 replies
    Copy to Clipboard
  • n

    nglauber

    1 year ago
    Anyone else having this issue?
    java.lang.NoSuchFieldError: Companion
    	at androidx.compose.compiler.plugins.kotlin.ComposeComponentRegistrar$Companion.registerProjectExtensions(ComposePlugin.kt:189)
    	at androidx.compose.compiler.plugins.kotlin.ComposeComponentRegistrar.registerProjectComponents(ComposePlugin.kt:119)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.registerExtensionsFromPlugins$cli(KotlinCoreEnvironment.kt:566)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$ProjectEnvironment.registerExtensionsFromPlugins(KotlinCoreEnvironment.kt:129)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:169)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment.<init>(KotlinCoreEnvironment.kt:109)
    	at org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment$Companion.createForProduction(KotlinCoreEnvironment.kt:421)
    	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.createCoreEnvironment(K2JVMCompiler.kt:226)
    	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:152)
    	at org.jetbrains.kotlin.cli.jvm.K2JVMCompiler.doExecute(K2JVMCompiler.kt:52)
    	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:88)
    	at org.jetbrains.kotlin.cli.common.CLICompiler.execImpl(CLICompiler.kt:44)
    	at org.jetbrains.kotlin.cli.common.CLITool.exec(CLITool.kt:98)
    	at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:371)
    	at org.jetbrains.kotlin.incremental.IncrementalJvmCompilerRunner.runCompiler(IncrementalJvmCompilerRunner.kt:105)
    	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compileIncrementally(IncrementalCompilerRunner.kt:249)
    	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.access$compileIncrementally(IncrementalCompilerRunner.kt:38)
    	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner$compile$2.invoke(IncrementalCompilerRunner.kt:80)
    	at org.jetbrains.kotlin.incremental.IncrementalCompilerRunner.compile(IncrementalCompilerRunner.kt:92)
    	at org.jetbrains.kotlin.daemon.CompileServiceImplBase.execIncrementalCompiler(CompileServiceImpl.kt:602)
    	at org.jetbrains.kotlin.daemon.CompileServiceImplBase.access$execIncrementalCompiler(CompileServiceImpl.kt:93)
    	at org.jetbrains.kotlin.daemon.CompileServiceImpl.compile(CompileServiceImpl.kt:1644)
    ...
    I’m using Android Studio Arctic Fox | 2020.3.1 Canary 6 with these lib versions…
    n
    d
    +1
    9 replies
    Copy to Clipboard
  • Vivek Sharma

    Vivek Sharma

    1 year ago
    prev we used vectorResource(R.drawable.something) in Image() composabe, now it is deprecated how to load image/svg from drawables now?
    Vivek Sharma
    1 replies
    Copy to Clipboard
  • s

    Se7eN

    1 year ago
    I have a
    LazyColumn
    inside an
    AlertDialog
    and the title and the buttons of the dialog go outside the screen when the content in
    LazyColumn
    is large enough. Is there a way to have some padding around the dialog so the title and the buttons are always visible?
    Modifier.padding
    on the
    AlertDialog
    doesn't work
    s
    z
    2 replies
    Copy to Clipboard
  • Shakil Karim

    Shakil Karim

    1 year ago
    Is there is any to achieve Weight like behavior in LazyColumn I have 1 item taking 100 dp and I want 2 item to fill the remaining space not fill the entire screen?
    Shakil Karim
    d
    +1
    3 replies
    Copy to Clipboard
  • manueldidonna

    manueldidonna

    1 year ago
    Scroll lags with
    ScrollableTabRow
    after a swipe using alpha12. In alpha9 the scroll was ok. BottomSheetScaffold has the same weird behavior on swipe edit: I've created an issue in the tracker
    manueldidonna
    s
    +1
    11 replies
    Copy to Clipboard
  • Jeremy

    Jeremy

    1 year ago
    vectorResource
    was deprecated with recommendation to use
    painterResource
    which creates Painter. How to convert
    Painter
    to
    ImageVector
    ?
    Jeremy
    a
    +2
    7 replies
    Copy to Clipboard
  • gbaldeck

    gbaldeck

    1 year ago
    I'm using compose for desktop and I can't seem to find DropdownMenu. I am trying to make a drop down box or combo box. Is there a different component I should be using?
    gbaldeck
    rsktash
    +2
    7 replies
    Copy to Clipboard
  • manueldidonna

    manueldidonna

    1 year ago
    How can I modify the paint object used by a painter? I have a
    BitmapPainter
    and I need to disable the antialiasing
    manueldidonna
    1 replies
    Copy to Clipboard