jim
07/14/2021, 6:37 PMColton Idle
07/14/2021, 6:58 PMnatario1
07/14/2021, 7:12 PMSanendak
07/14/2021, 10:00 PMval scope = rememberCoroutineScope()
LaunchedEffect(scope) {
viewModel.effect.collect {
when(it) {
is ShowEffect1 -> //Runs first from VM and shows
is ShowEffect2 -> //Runs after and doesn't run here
}
}
}
In ViewModel:
private val _effect = MutableSharedFlow<CharactersScreenEffect>()
val effect = _effect.asSharedFlow()
I don't want to use .asStateFlow because it need initial state.Mia Clapham
07/14/2021, 10:39 PMCould not GET '<https://kotlin.bintray.com/kotlinx/androidx/lifecycle/lifecycle-viewmodel-compose/1.0.0-rc02/lifecycle-viewmodel-compose-1.0.0-rc02.pom>'. Received status code 403 from server: Forbidden
Disable Gradle 'offline mode' and sync project
I tried RC1 as well with the same result and Bintray says it's up and operational. Is anyone else facing this issue?mp
07/14/2021, 11:33 PMAnimatedContent
for screen transitions and I seem to have hit a road block. ContentTransform
is restricted to fades, slides, and size changes, so I don’t see a way to use this for something more complex that uses child elements. Ex: fade the screen background in, then fade the content in. A more extreme example would be a shared element transition. Is the AnimatedContent
API meant to be used for things like this, or is there another more general API that could be used?Chuck Stein
07/15/2021, 3:36 AMAyfri
07/15/2021, 4:07 AMAdib Faramarzi
07/15/2021, 4:55 AMcomposeView.setContent {
Text(text = "WELCOME TO COMPOSE!")
}
and I get a runtime error
java.lang.NoSuchMethodError: No virtual method setContent(Lkotlin/jvm/functions/Function0;)V in class Landroidx/compose/ui/platform/ComposeView; or its super classes (declaration of 'androidx.compose.ui.platform.ComposeView' appears in /data/app/taxi.tap30.passenger.debug--kKKwSbfzrf377VbKRnzSQ==/base.apk)
Lukas
07/15/2021, 7:39 AMHtml.fromHtml()
, but instead of showing their corresponding umlauts, I just get these question mark diamonds, as shown in the picture.
I assume this is a charset problem, but I couldn't find any information on how to set a specific one in compose.grandstaish
07/15/2021, 9:48 AMPeter Mandeljc
07/15/2021, 10:21 AMCicero
07/15/2021, 10:59 AMYuri Drigin
07/15/2021, 1:02 PMrc2
still have this problem with compose preview?
The following classes could not be found: - androidx.compose.ui.tooling.preview.ComposeViewAdapter (Fix Build Path, Edit XML, Create Class)
dave
07/15/2021, 1:52 PMjava.lang.IllegalStateException: Nesting scrollable in the same direction layouts like LazyColumn and Column(Modifier.verticalScroll()) is not allowed. If you want to add a header before the list of items please take a look on LazyColumn component which has a DSL api which allows to first add a header via item()
MBegemot
07/15/2021, 3:07 PMOrhan Tozan
07/15/2021, 3:23 PMZun
07/15/2021, 4:43 PM.subtitle2.merge(TextStyle(textDecoration = TextDecoration.Underline))
Dominaezzz
07/15/2021, 9:46 PMLazyColumn
where it keeps snapping back https://github.com/JetBrains/compose-jb/issues/800 . I couldn't create a small reproducer so I've decided to just debug it myself.
I've tracked it down to the measureLazyList
function, which is where scroll is consumed but it's really big 😩 , any idea for what I should look for or how to narrow it down?tad
07/16/2021, 12:37 AMTash
07/16/2021, 2:53 AMAnimatedVisibility
& trying to dynamically update the transition values by calculating them based on mutable states; so, when a component enters/exits the enter/exit animation can be different every time. Just wanted to get some feedback on the approach 🧵kevindmoore
07/16/2021, 4:19 AMGaurav Tyagi
07/16/2021, 4:43 AMeditTextPhone.setKeyListener(DigitsKeyListener.getInstance("0123456789"));
how can achieves it in compose edit textAbhishek Dewan
07/16/2021, 6:55 AMRavi
07/16/2021, 11:30 AMms
07/16/2021, 12:30 PMAnimatedVisibility
is not getting shown even mutableStateOf
is true
Code in 🧵Peter Mandeljc
07/16/2021, 12:47 PMText
if you set it specific height, if you set Modifier.defaultMinSize(100.dp)
?Karthick
07/16/2021, 1:44 PMOffset
modifier. Anyone know how to animate the item without next item having gapSocheat KHAUV
07/16/2021, 3:01 PMGil Sinclair-Julio
07/16/2021, 3:55 PM