Colton Idle
06/02/2022, 7:07 AMIntervalList
and MutableIntervalList
. It allows to represent some list of values via multiple intervals. It will be useful when you want to define your own dsl similar to the one used by LazyColumn
where list items can be defined via multiple item/items calls. (I2d05e, b/228580728)
• Clarified the documentation for WindowInsets.ime
to state that ime
insets are reported as far back as API 23, but only animated on 30+. (Ia7fc0, b/230756508)
• Pressing the forward delete key when the cursor is at the end of a text field will no longer crash.
• Fix incorrect offset calculation for Modifier.animateItemPlacement() in lazy lists
• Fix for stretch overscroll clipping the shadow (OHHHH YEAHHH. This made carousels look kinda bad. 💯 )
• Show selection handles in read-only text field
• Fixed a bug where BottomSheetScaffold
was drawing over the top app bar's shadow. BottomSheetScaffold
now also takes the sheet's state into account when placing Snackbars: in the collapsed state, Snackbars are placed above the sheet and FAB; in the expanded state, Snackbars are anchored to the sheet's bottom. (thanks Jossi 😄 )
• Fix Material outline text field label measurement
• Fix inner text field position of the OutlinedTextField when label is multiline
• Clean up invalidated compositions during disposal
• Fix derive state read during recomposition ("sometimes causing infitinite recompositions" ?)
• Baseline profiles for compose should be derived using benchmarks.
• The Show Layout Bounds
setting will now be applied for composables immediately after toggling it from the quick settings tile, without having to leave and re-enter the activity. (OHHHH YEAH)
• Some minor fixes for custom font stuff
• Material3 Version 1.0.0-alpha13 releasedAaron Waller
06/02/2022, 7:22 AMTolriq
06/02/2022, 8:28 AMAlexander Maryanovsky
06/02/2022, 9:49 AMColumn
with a variable number of items and I want a new item to slide in when it’s added. AnimatedVisibility
doesn’t seem to be the right solution, because the content is not visible/invisible, it just doesn’t exist before it’s added.Mikael Ohlson
06/02/2022, 1:42 PMmyanmarking
06/02/2022, 5:27 PMRemon Shehata
06/02/2022, 7:10 PMContext
and AttributeSet
from Compose I can pass only the Context
is there a way to pass the AttributeSet
?Luke
06/02/2022, 7:53 PMText
that I think might be a bug in the framework. Basically, when I put a height(x.dp)
modifier on a Text
, but the text is too long, the last line appears outside the bounds of Text
. More in thread.mattinger
06/02/2022, 8:53 PMLilly
06/03/2022, 12:34 AMAdd permission check
in composables?:
Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityExceptionWith Android 12 this shit becomes really confusing. Anything that is not like:
if (ActivityCompat.checkSelfPermission(
this,
Manifest.permission.BLUETOOTH_CONNECT
) != PackageManager.PERMISSION_GRANTED
) {
// TODO: Consider calling
// ActivityCompat#requestPermissions
// here to request the missing permissions, and then overriding
// public void onRequestPermissionsResult(int requestCode, String[] permissions,
// int[] grantResults)
// to handle the case where the user grants the permission. See the documentation
// for ActivityCompat#requestPermissions for more details.
return
}
val deviceName: String? = sharedPresenter.connectedDevice?.name // no warning
will be reported as if the permission has never been granted, which is technically wrong. But the example above is no real world use case and also verbose and leads to duplicated code. That's why accompanist has its rememberPermissionState
API. But using this API does not prevent the warning.Nabeel
06/03/2022, 11:37 AMMaterialSharedAxis
transition for fragment with ComposeView
getting crash when pressing back button, Full question in Threadlilypuchi
06/03/2022, 2:05 PMJhonatan Sabadi
06/03/2022, 2:14 PMDivider
and LazyRow
hides Divider
?Slackbot
06/03/2022, 2:15 PMFunkyMuse
06/03/2022, 3:07 PMLucas
06/03/2022, 4:36 PMArjan van Wieringen
06/04/2022, 9:17 AMclass AppViewModel(val someExternalStateFlow: StateFlow<Something>, val scope: CoroutineScope) {
private var _state = mutableStateOf(someExternalStateFlow.current)
val state: Something by _state
init {
someExternalStateFlow.onEach { _state.value = it }.launchIn(scope)
}
}
Something like this:
fun <T> StateFlow<T>.collectAsState(scope: CoroutineScope): State<T> {
val state = mutableStateOf(this.value)
this.onEach { update ->
state.value = update
}.launchIn(scope)
return state
}
juliocbcotta
06/04/2022, 11:40 AMNat Strangerweather
06/04/2022, 1:20 PMMarko Novakovic
06/04/2022, 2:51 PMMehdi Haghgoo
06/04/2022, 3:30 PMval multiSelectionEnabled = rememberSaveable{mutableStateOf(selection.isNotEmpty())}.value
Will changing selection, trigger a recomposition? Can this be used instead of using delegates?Mateusz Wieczorek
06/04/2022, 3:50 PMNikolai Wotton
06/04/2022, 4:25 PMBackend Internal error: Exception during IR lowering
, wondering if I’m doing it wrong or if it’s just not supported yetLaurence Muller
06/04/2022, 5:44 PMNorbi
06/05/2022, 2:43 PMSterling Albury
06/05/2022, 11:45 PMfun SomeComposableContent(startRoute: String) =
NavHost(
route = "outer",
startDestination = "inner/{userId}"
) {
navigation(startDestination = "inner/start/{userId}", route = "inner/{userId}" {
composable(route = "inner/start/{userId}") { backEntry ->
val userId = backEntry.arguments?.getString("userId")
ScreenOne(userId)
}
}
composable(route = "next") {
ScreenTwo()
}
}
If I use the "next" destination as my start and then navigate to the inner graph with passing an arg, things work, but if I want to start at the inner start destination, and I'm not calling navController.navigate(), how can I pass the argument? I'm basically trying to load the graph and pass the argument..is that possible?Satyam G
06/06/2022, 4:26 AMfengdai
06/06/2022, 5:31 AMwck
06/06/2022, 5:53 AMSnackBar
duration issue where it always shows 10seconds in emulator and works fine(4 seconds)on the real device (with
duration = SnackbarDuration.Short
)? really odd.
• No developer settings to change animationSaiedmomen
06/06/2022, 7:31 AMSaiedmomen
06/06/2022, 7:31 AMxxfast
06/06/2022, 8:27 AMSaiedmomen
06/06/2022, 8:32 AM