Ian Warwick
03/20/2020, 10:01 AMcaelum19
03/20/2020, 7:36 PMmolikto
03/21/2020, 5:36 AMBottomNavigation(LayoutPadding(bottom = systemInsets.bottom)) {
It seems to me background is drawn within paddings?molikto
03/21/2020, 6:17 AMThis allows for large performance improvements when the theme is being changed, especially if it is being animated.
Animating themes is pretty coolkartoffelsup
03/21/2020, 4:15 PMaryk
03/21/2020, 6:24 PMamar_1995
03/21/2020, 7:19 PMaryk
03/21/2020, 7:59 PMamar_1995
03/22/2020, 2:36 AMjava.lang.IllegalStateException: Node should be attached to an owner
It is occuring to me when I upgrade compose version to dev-07.Val Salamakha
03/22/2020, 3:55 AMnavigationIcon = {
IconButton(onClick = {
scaffoldState.drawerState = DrawerState.Opened
},
children = {
Icon(icon = vectorResource(id = R.drawable.ic_jetnews_logo), tint = Color.White)
}
)
// VectorImageButton(R.drawable.ic_jetnews_logo) {
// scaffoldState.drawerState = DrawerState.Opened
// }
}
And VectorImage could be replaced to:
Icon(icon = vectorResource(id = R.drawable.ic_bookmarked))
//VectorImage(id = R.drawable.ic_bookmarked)
molikto
03/22/2020, 9:43 AMAdrian Blanco
03/22/2020, 3:53 PMinterface Foo { val view: @Composable() -> Unit }
with an implementation in a different module, using dev-06 and above fails at compile time with this error:
error: cannot access Foo
public final class FooImpl implements ...Foo {
bad class file: .../classes.jar(.../Foo.class)
undeclared type variable: N
codeslubber
03/22/2020, 6:44 PMOscar Sequeiros
03/22/2020, 9:14 PMmolikto
03/23/2020, 4:27 AMfun Button(text: String | AnnotatedString | @Composable () -> Unit)
. or implicit conversions (which is more powerful for better or worseGuy Bieber
03/23/2020, 8:28 PMVerticalScroller(
isScrollable = true,
child = child
)
Chase James
03/24/2020, 2:07 AMInternal error: Couldn't inline method call 'state$default' into @androidx.compose.Composable public inline fun <T> `state$default`(noinline areEquivalent: ((T, T) -> kotlin.Boolean)?, init: () -> T, `$mask0`: <http://kotlin.Int|kotlin.Int>, `$handler`: kotlin.Any?): androidx.compose.MutableState<T> defined in androidx.compose <no source>
Vincent tiensi
03/24/2020, 4:44 AMRow {
// ...
Container(width = 48.dp, height = 48.dp) {
DrawVector(profilePlaceholderImage)
}
Spacer(modifier = LayoutPadding(start = 16.dp))
Column {
// ...
drawNameAndStars()
}
// This line of code isn't working as expected
Container(width = 14.dp, height = 14.dp, modifier = LayoutFlexible(1f) + LayoutAlign.CenterRight) {
DrawVector(arrowVector)
}
}
Isaac Udy
03/24/2020, 7:26 AMio.khimera.example.weather.SplashScreenViewModelKt$splashScreenRouter$1$1 cannot be cast to kotlin.jvm.functions.Function2
fun <T> withView(view: T) where T:(@Composable() (VM) -> Unit) {
if (this.view != null) throw IllegalStateException("Route already has view")
this.view = view
}
...
withView(::SplashScreen)
Thiago
03/24/2020, 6:26 PMdata class LayoutFractional(val dx: Float, val dy: Float) : LayoutModifier {
override fun ModifierScope.modifyPosition(
childSize: IntPxSize,
containerSize: IntPxSize
): IntPxPosition = IntPxPosition(
x = childSize.width * dx.coerceIn(MIN_FRACTION, MAX_FRACTION) *
if (layoutDirection == LayoutDirection.Ltr) MAX_FRACTION else MIN_FRACTION,
y = childSize.height * dy.coerceIn(MIN_FRACTION, MAX_FRACTION)
)
companion object {
private const val MAX_FRACTION = 1f
private const val MIN_FRACTION = -1f
val Origin = LayoutFractional(0f, 0f)
}
}
Vincent tiensi
03/25/2020, 7:10 AMaryk
03/25/2020, 8:48 AMAndrew Rudenko [JB]
03/25/2020, 10:07 AMprat
03/26/2020, 3:03 AMThiago
03/26/2020, 2:59 PMThiago
03/26/2020, 5:22 PMgabrielfv
03/26/2020, 6:46 PMaljosa
03/27/2020, 9:48 AMZach Klippenstein (he/him) [MOD]
03/27/2020, 4:36 PMdrawLayer
modifier is real nice!
https://gist.github.com/zach-klippenstein/e2c8e6edf0d950d8ba527cd0681c5b60Klaas Kabini
03/27/2020, 5:42 PMKlaas Kabini
03/27/2020, 5:42 PMLeland Richardson [G]
03/27/2020, 5:45 PMKlaas Kabini
03/27/2020, 5:47 PMZach Klippenstein (he/him) [MOD]
03/27/2020, 6:01 PMKlaas Kabini
03/27/2020, 6:18 PMZach Klippenstein (he/him) [MOD]
03/27/2020, 6:48 PM