Adam Brown
07/30/2022, 7:57 AMZoltan Demant
07/30/2022, 12:55 PMmodifier = {}
block.ryan.fonzi
07/30/2022, 2:30 PMDialog
seems to ignore the density values in LocalDensity
for its content. 🧵oianmol
07/30/2022, 4:58 PMIndication
and Interaction
Interface today in compose https://medium.com/@anmol.verma4/jetpack-compose-interaction-and-indication-8cfed0e82bcbdimsuz
07/30/2022, 5:32 PM@Stable
and @Immutable
stuck inside the compose.runtime
artifact, but is there some workaround until then? Especially when I cannot use .aar
because I'm building a small library which I want to be a .jar
and so no option of simply adding a dependency on compose.runtime
...andrew
07/31/2022, 2:20 AMraghunandan
07/31/2022, 5:12 AMJasmin Fajkic
07/31/2022, 11:27 AMZoltan Demant
07/31/2022, 12:24 PMContentTransform
with fadeIn()
and `slideOutVertically()`; is it expected that the slideOutVertically should fade out as well? This doesnt make sense to me, is it a bug?samuel
07/31/2022, 1:10 PMText
composable overflows. I came across TextLayoutResult.getLineEnd
that seems like it could help me in this case. However, i need to supply the lineIndex
. How would i go about getting the lineIndex
of the line that is overflowing?oianmol
07/31/2022, 1:58 PMoianmol
07/31/2022, 3:16 PMGreg Steckman
08/01/2022, 3:21 AMLilly
08/01/2022, 5:35 AMDisposableEffect(Unit) {
onDispose { Log.e("ScreenA", "Leaving...") } // is logged immediately after call to navigate to screen B but screen A still visible
}
I would at least expect an empty screen B immediately after this log. Any ideas?
EDIT: logs in thread.Loney Chou
08/01/2022, 11:16 AMVectorizedInfiniteRepeatableSpec
, `repetitionStartVelocity`calls `getVelocityFromNanos`with `targetValue = startVelocity`and initialVelocity = end
. I can't get the meaning out of it. Compose version 1.1.1.IsaacMart
08/01/2022, 12:49 PMRequired:
MutableState<User.Companion>
Found:
User
var user by rememberSaveable { mutableStateOf(User) }
val systemUiController = rememberSystemUiController()
SideEffect {
systemUiController.setStatusBarColor(
color = PrimaryColor
)
}
LaunchedEffect(key1 = context){
viewModel.userResults.collect{ event ->
when(event){
is Resource.Success ->{
event.data?.let {// user from room database
user = it // It throws an error here
}
}
is Resource.Error ->{
Toast.makeText(context, event.message, Toast.LENGTH_SHORT).show()
}
}
}
Cyril Kym
08/01/2022, 1:51 PMJoel Anderson
08/01/2022, 2:58 PMAnimatedVisibility
for hiding list items, but this has a negative potential side effect when that list of hidden items is very large: when you scroll past the collapsed section, the LazyColumn tries to recompose all the hidden items at once and drops frames or potentially freezes.
I've filed the issue here: https://issuetracker.google.com/issues/240599812 but am not sure if anyone has any alternatives? For now we've settled on just removing the items from the lazy list when they are not visible, but that breaks our change animations.agrosner
08/01/2022, 4:06 PMBradleycorn
08/01/2022, 6:55 PMAPI level 33
, and as soon as I did that, all of my instrumented tests that use createComposeRule
no longer work, and fail with an ActivityNotFoundException
(it’s looking for androidx.test.core.app.InstrumentationActivityInvoker$BootstrapActivity). Has anyone else run into this problem?
I can reproduce the issue using the latest stable Android Studio (Chipmunk 2021.2.1 Patch 1), following these steps:
1. Create a New project using the “Empty Compose Activity” template.
2. Add a compose rule to the included ExampleIntrumentedTest
, like this: @get:Rule var composerule = createComposeRule()
3. Run the example useAppContext
test, and note that it passes.
4. Now, in the app module’s build.gradle, update the compileSdk
and targetSdk
to use 33
.
5. Run the example useAppContext
test again, and see that it fails with ActivityNotFoundException
…
Has anyone else found this? How can we fix it?
Thanks!Chris Johnson
08/01/2022, 9:18 PMJorge Domínguez
08/01/2022, 8:01 PMjulian
08/01/2022, 6:26 PMA mutable value holder where reads to the value property during the execution of a Composable function, the current RecomposeScope will be subscribed to changes of that value.
prat
07/25/2022, 3:50 PMThis function should ***not*** be used to (re-)launch ongoing tasks in response to callback
events by way of storing callback data in [MutableState] passed to [key1].Can someone please give an example of this bad use case for
LaunchedEffect
? I want to make sure that I understand this correctly.Billy Newman
08/01/2022, 6:35 PMraghunandan
07/18/2022, 11:04 AMTash
08/01/2022, 9:42 PMcurrentLines
ever get updated from the onTextLayout
block? Like if you removed everything else.Paul Woitaschek
08/02/2022, 7:13 AMpermissionRequested
is missing with the goal for a better UX.
But doesn’t this take away the possibility to ask for the permission right away?
For example in our flow the user clicks on a camera icon. In this case I don’t want to show her a dialog where I explain that I’m now going to ask her for her permission.Joe Altidore
08/01/2022, 10:27 PMExecution failed for task ':app:compileDebugKotlin'.
> Could not resolve all files for configuration ':app:kotlin-extension'.
> Could not find androidx.compose.compiler:compiler:1.3.0-alpha02.
fengdai
08/02/2022, 8:51 AMfengdai
08/02/2022, 8:51 AMval globalWriteObserverHandler = Snapshot.registerGlobalWriteObserver {
println("on global written")
Snapshot.sendApplyNotifications()
}
val applyObserverHandler = Snapshot.registerApplyObserver { set, _ ->
println("on applied - $set")
}
val count = mutableStateOf(0)
count.value = 1
globalWriteObserverHandler.dispose()
applyObserverHandler.dispose()
...
val count = mutableStateOf(0)
// added this line
Snapshot.takeSnapshot().dispose()
count.value = 1
...
Dose anyone know the reason?fun <T : StateRecord> T.overwritableRecord
.
internal fun <T : StateRecord> T.overwritableRecord(
state: StateObject,
snapshot: Snapshot,
candidate: T
): T {
...
if (candidate.snapshotId == id) return candidate
...
snapshot.recordModified(state)
return newData
}
When candidate record is found, it returns, without calling recordModified
. Is this expected? If yes, what the reason?Zach Klippenstein (he/him) [MOD]
08/03/2022, 7:08 PMfengdai
08/04/2022, 12:59 PMZach Klippenstein (he/him) [MOD]
08/04/2022, 4:54 PMfengdai
08/05/2022, 12:07 AMinitializeObjects
? I’m guessing you mean notifyObjectsInitialized
. And it works. Thanks very much!Zach Klippenstein (he/him) [MOD]
08/05/2022, 6:10 PM