codeslubber
11/16/2019, 5:59 AMJohan
11/16/2019, 11:54 AMBruno_
11/17/2019, 1:45 PMCan
11/17/2019, 2:20 PM@Model
class as a parameter for a compose function does not seem to work right now? 🤔Alexander Repin
11/18/2019, 10:26 AMcamkadev
11/18/2019, 10:43 AMAndroid Context
in Preview
? It is needed to take some resources like Vector drawablesLuca Nicoletti
11/18/2019, 11:11 AMcolor = (+MaterialTheme.colors()).primary
is way uglier than what it used to be: color = +themeColor { primary }
Alexander Repin
11/18/2019, 11:33 AMAlexander Repin
11/18/2019, 11:33 AMkioba
11/18/2019, 11:51 AMamar_1995
11/18/2019, 12:59 PMBottomDrawerLayout
and DropdownPopup
.
Is there something else to which I can try to achieve this ?Muh Rahmatullah
11/18/2019, 4:26 PMSimpleImage
wrapped inside a Container
. code like this
Container(width = 62.dp, height = 42.dp) {
SimpleImage(image = image)
}
Bruno_
11/18/2019, 10:03 PM@Model
object, will it trigger rerender of a whole "tree"? I mean not only the composable that uses this object, right?Luca Nicoletti
11/19/2019, 3:36 PMimageFromResource
does not work in repo
?itnoles
11/19/2019, 11:35 PMFacundo Rodriguez Arceri
11/20/2019, 1:25 PMgalex
11/21/2019, 10:14 AMamar_1995
11/21/2019, 11:37 AMtry-catch
inside composable function.
I am getting the below error
Try catch is not supported around composable function invocations.
matt tighe
11/21/2019, 6:20 PM@Preview
function and does it need to be in the main activity?amar_1995
11/22/2019, 8:04 AM+memo
, +state
, +model
and when to use which one ?
I know all of this observing some value and try to recompose on value changes.MBegemot
11/22/2019, 10:40 AMMBegemot
11/22/2019, 10:51 AMMBegemot
11/22/2019, 11:06 AMLuca Nicoletti
11/22/2019, 4:07 PMsetShadowLayer
in androidx.ui.graphics.Paint
? Is there a way to draw shadow inside Draw {}
composable?Luca Nicoletti
11/22/2019, 5:33 PMvar inputPosition: Offset? by +state { null as Offset? }
I updated it inside the PressGestureDetector
observer with: inputPosition = Offset(position.x.value, position.y.value)
then I have a @Composable
function that accept an Offset?
as input and Draw { canvas, _ -> canvas.drawCircle(pos, size.value, paint = paint) }
with that position.
I’m getting the following error as soon as the user tap somewhere:Roar Gronmo
11/23/2019, 3:45 PMdeactivateduser
11/24/2019, 1:54 PMcamkadev
11/25/2019, 6:38 AMlen
11/26/2019, 11:17 AMCaused by: java.lang.AssertionError: lastLineNumber shall be not negative, but is -1
at org.jetbrains.kotlin.backend.jvm.codegen.IrSourceCompilerForInline.doCreateMethodNodeFromSource(IrSourceCompilerForInline.kt:98)
at org.jetbrains.kotlin.codegen.inline.InlineCodegen$Companion.createInlineMethodNode$backend(InlineCodegen.kt:538)
at org.jetbrains.kotlin.codegen.inline.InlineCodegen.performInline(InlineCodegen.kt:139)
...
Not sure they currently don't compile and you're aware of this or my setup is wrong (I only followed the steps to clone the repo and ran repo sync
). I also tried applying the kotlinc 1.3.61 patch but nothing changed.
The command I ran was ./gradlew :ui:ui-material:integration-tests:ui-material-demos:installDebug
Daniel Sandström
11/26/2019, 9:29 PM