Fudge
02/24/2021, 10:01 PMDieter Holz
02/24/2021, 10:40 PMTash
02/24/2021, 11:16 PMManualAnimationClock
.
In general what’s the declarative way to think about “freezing” and “resuming/reverting” animations, and are there any related APIs at the moment? Came across *Pausable*MonotonicFrameClock but seems like a lower level API 🤔Colton Idle
02/24/2021, 11:18 PMsetContent
in beta01. Search in slack doesn't show anyone with the same problem. Any ideas?Tony Kazanjian
02/25/2021, 12:18 AMColton Idle
02/25/2021, 3:26 AMitnoles
02/25/2021, 3:51 AMColton Idle
02/25/2021, 4:01 AMhttps://youtu.be/BhqPpUYJYeQ▾
Yofou
02/25/2021, 4:14 AMknthmn
02/25/2021, 4:16 AMNavHost()
already provides ViewModelStoreOwner
, LifecycleOwner
, and SavedStateRegistryOwner
locals. Is there a function like scopeViewModels(savedState: Bundle? = null, content @Composable () -> Unit)
that I can use that also scopes all the view models inside content and automatically clear them like NavHost()
does? I want to use it for dialogs which does not make much sense with NavHost()
Deepak Gahlot
02/25/2021, 4:48 AMShakil Karim
02/25/2021, 6:00 AMPaul Woitaschek
02/25/2021, 6:41 AMAditya Wasan
02/25/2021, 7:47 AMprintToLog
method it seems that now there is an extra node in the compose hierarchy
|-Node #4 at (0.0, 171.0, 1080.0, 325.0)px
SelectableGroup = 'kotlin.Unit'
MergeDescendants = 'true'
Is this a planned change or a bug?
(Posting more details in the thread)allan.conda
02/25/2021, 8:41 AMjava.lang.NoSuchMethodError: No static method painterResource(I)Landroidx/compose/ui/graphics/painter/Painter; in class Landroidx/compose/ui/res/PainterResources_androidKt; or its super classes (declaration of ‘androidx.compose.ui.res.PainterResources_androidKt’ appears in /data/app/com.example.app.debug-bpEZigKD1QJBwWERJb9cjw==/base.apk)
alorma
02/25/2021, 9:14 AMCoilImage
to show an image:
CoilImage(
data = "",
modifier = modifier,
contentDescription = "",
contentScale = ContentScale.Crop,
loading = { CircularProgressIndicator(Modifier.align(Alignment.Center)) }
)
But it not shows the image loaded from network (https://random.dog/00186969-c51d-462b-948b-30a7e1735908.jpg▾
Error(painter=null, throwable=kotlinx.coroutines.JobCancellationException: StandaloneCoroutine was cancelled; job=StandaloneCoroutine{Cancelled}@7155d16)
Marko Novakovic
02/25/2021, 9:49 AMimplementation "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0"
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:1.0.0-alpha-02'
but still can’t find viewModel()
function. What should I do?Eric Ampire [MOD]
02/25/2021, 9:52 AMeygraber
02/25/2021, 10:09 AMComposition
function mentions that parent
is optional, and defaults to null, but the parameter neither has a default value, nor is nullable.
Is that something to file a bug about, or is documentation still a WIP?Ahmet Delibaş
02/25/2021, 10:11 AMMaciej Pigulski
02/25/2021, 10:15 AMjava.lang.NoClassDefFoundError: Failed resolution of: Landroidx/compose/ui/platform/AndroidAmbientsKt;
at androidx.navigation.compose.NavHostControllerKt.rememberNavController(NavHostController.kt:79)
Albert Chang
02/25/2021, 10:25 AMFlingBehavior
makes the code much better. However, as performFling()
will not be called if there is no fling velocity, I can't figure out a way to snap to a page in that case. Is there any other way to correctly implement this behavior (Modifier.swipeable
doesn't seem to fit)? If there is no, I think it's reasonable to call performFling()
even if there is no fling velocity.Orhan Tozan
02/25/2021, 10:29 AMVivek Sharma
02/25/2021, 10:32 AMModifier.size(dp)
, and I tried to change its size(dp)
again, but it doesnt get change, it fixes size with respect to the first value which we set, is this okay? I dont know, but felt weird and okay at same timeJohn O'Reilly
02/25/2021, 11:16 AMDeepak Gahlot
02/25/2021, 12:01 PMLucien Guimaraes
02/25/2021, 12:32 PMMarcello Galhardo
02/25/2021, 12:58 PMjulioromano
02/25/2021, 1:14 PMAndroidView
with a WebView
inside and every time it becomes visible again it will recompose and therefore reload the website. Any ideas how to get around this?alorma
02/25/2021, 1:19 PM.clickable(
indication = rememberRipple(
color = MaterialTheme.colors.primary.copy(alpha = 0.20f),
),
interactionSource = remember { MutableInteractionSource() },
) { }
alorma
02/25/2021, 1:19 PM.clickable(
indication = rememberRipple(
color = MaterialTheme.colors.primary.copy(alpha = 0.20f),
),
interactionSource = remember { MutableInteractionSource() },
) { }
Andrey Kulikov
02/25/2021, 2:15 PMalorma
02/25/2021, 2:34 PMAndrey Kulikov
02/25/2021, 2:36 PM