manueldidonna
11/09/2021, 10:26 PMZsolt
11/09/2021, 10:50 PMupdateTransition
, any updates to the targetState
seem to not respect the passed transitionSpec
but to create a new one with default values.
E.g.:
1. Have an updateTransition.animateFloat
with transitionSpec = { tween(4000, 0, LinearEasing) }
2. Start a transition between states A → B
3. While the transition is running, set a new targetState
for the transition: C
ER: The transition towards the new state finishes in 4000ms
with LinearEasing
AR: The transition towards the new state finishes in 300ms
with FastOutSlowIn
easing (default values of TweenSpec
)Skc
11/09/2021, 11:06 PMColton Idle
11/10/2021, 2:53 AMModalBottomSheetLayout
?Nurseyit Tursunkulov
11/10/2021, 7:25 AMHachemi Hamadi
11/10/2021, 9:05 AMandroidcactus
11/10/2021, 10:07 AMAlex
11/10/2021, 11:00 AMAlex
11/10/2021, 11:15 AMdarkmoon_uk
11/10/2021, 11:55 AMSVGView
from Caverock's AndroidSVG library. It was last updated in 2019 but works well, wrapped in an `AndroidView`; no complaints! I might do that again, but interested to hear alternatives?Steffen Funke
11/10/2021, 4:21 PMSurface
to not set any contentColor
, e.g. make it behave like a Box
in this regard? I have custom colored content (Texts, Sliders, etc….), but as soon as I wrap them into a ModalBottomSheetLayout
- which is backed by a Surface
- everything gets tinted with the contentColor
. I surely miss something here. 🤔John Aoussou
11/10/2021, 4:37 PMAli Albaali
11/10/2021, 5:59 PMLazyColumn
but it's prohibited, so now I'm using a Column
and loop thru items but that's not the most optimal solution. Any ideas?Tanaka
11/10/2021, 6:28 PMNathan Castlehow
11/11/2021, 5:32 AMMehdi Haghgoo
11/11/2021, 5:55 AMStylianos Gakis
11/11/2021, 9:20 AMremember
something or not. More in thread: 🧵Geert
11/11/2021, 9:30 AMClament John
11/11/2021, 11:54 AMNestedNavigation
(jetpack navigation) with arguments?
How would I pass id
to the login
nav graph?
fun NavGraphBuilder.loginGraph(navController: NavController) {
navigation(
startDestination = "username",
route = "login/{id}",
arguments = listOf(navArgument("id") { type = NavType.StringType }),
) {
composable("username") { ... }
composable("password") { ... }
composable("registration") { ... }
}
}
alorma
11/11/2021, 3:19 PMJorge Domínguez
11/11/2021, 3:27 PMval currentState = remember {
MutableTransitionState(TransitionState.START)
.apply { targetState = TransitionState.END }
}
val transition = updateTransition(currentState, label = "")
the initial composition triggers the transition but I need to restart it whenever a Canvas draws something, which happens some time after the initial Transition is triggered.
I've tried doing currentState.targetState = TransitionState.END
right before drawing inside the Canvas but it doesn't work.Rick Regan
11/11/2021, 3:40 PMMaterialTheme.colors
instead. What is the recommended way to declare additional colors that are sensitive to theme changes?
(References in 🧵.)Colton Idle
11/11/2021, 4:37 PMArpit Shukla
11/11/2021, 5:55 PMMohamed Ahmed ALi
11/11/2021, 6:44 PMbohregard
11/11/2021, 8:21 PM"Attempt to invoke interface method 'java.lang.Object androidx.compose.runtime.State.getValue()' on a null object reference
.
data class ActivationResponder(
val id: Long,
val firstName: String,
val lastName: String,
@SerializedName("callSign")
val callsign: String,
val phoneNumber: String,
) {
var isChecked: Boolean by mutableStateOf(false)
val name: String
get() = "$firstName $lastName"
}
Any insight on to why that would be the case?Colton Idle
11/11/2021, 11:07 PMLuis Daivid
11/12/2021, 5:22 AMStylianos Gakis
11/12/2021, 9:36 AMLayout()
. Have some problems with constraints, more in thread 🧵Stefan Oltmann
11/12/2021, 10:43 AM.dynamicTypeSize(.large ... .xxxLarge)
to limit the automatic scaling of the font size for regions where there largest font size may be too big?Stefan Oltmann
11/12/2021, 10:43 AM.dynamicTypeSize(.large ... .xxxLarge)
to limit the automatic scaling of the font size for regions where there largest font size may be too big?Albert Chang
11/12/2021, 12:36 PM