https://kotlinlang.org logo
#compose
Title
# compose
c

Colton Idle

09/21/2023, 4:35 AM
Compose version updates today 🎉 m3 1.1.2 stable • Fixed modifier incorrectly being passed to two composables. (b/282761472) • Fixed
TimePickerState
returns incorrect hours when initialized with 23 hours. (b/278242122) • Fixed initial toggle state for noon and minute validation. (b/269768197, b/282790635) • Fixed
state.hour
returning incorrect value for 11pm. (b/282761472, b/278242122) Version 1.6.0-alpha06 anim, foundation, material2, runtime, ui • New Composable wrappers for
SurfaceView
and
TextureView: GraphicsSurface()
and
EmbeddedGraphicsSurface()
. It is an experimental API and is subject to changes and modifications. (I9ddb2) •
Modifier.magnifier()
is now a stable API. This includes the removal of
MagnifierStyle
in favor of inline parameters in the modifier itself. (I83bec, b/298381260, b/262367109, b/261438887) • Introduced
updateCurrentPage
and
updateTargetPage
in
ScrollScope
, these are the last pieces necessary to allowing customization of animated scroll through
PagerState.scroll
. (I9cad5, b/267744105, b/243786897) • Remove density from
SnapFlingBehavior
. All implementations of
SnapLayoutInfoProvider
already have a way of accessing the density, the receiver scope could be removed which will lead to a less complex implementation of both
SnapFlingBehavior
and
SnapLayoutInfoProviders
. (I153c3) • More modifiers marked as stable. (I56af1, b/298046462) • Removed
SnapStepSize
from
SnapLayoutInfoProvider
. The calculation should be done using the Layout information and provided through the approach or snapping offsets. (If320c) • Compose now uses non-linear font scaling for better readability and accessibility. When font scale > 100% in system settings, small text will increase in size normally, but already-large text will only increase a little bit. Also, line heights defined in SP will automatically adjust to stay proportional to the 100% scale intended height. See the Font Scaling Best Practices for more info. (I11518) • Remove the use of
rememberSaveable
for tooltips. (Icc131, b/299500338) • Removed drawer-related functionality from
BottomSheetScaffold
. Wrap your
BottomSheetScaffold
in a Drawer composable to achieve the previous functionality. See
BottomSheetScaffoldWithDrawerSample
for an example. (I1dcc8) • Introduced a temporary flag to control whether Scaffold should measure its children during measurement or during placement. By default, this will measure in measurement. If you are facing issues with the new behavior, please file an issue. (If6e3b) • Additional optimizations to Material icons. (I3e08d) • Adds ability to traverse up/down modifier tree to find similar nodes. (I2d234) • Added
onRestoreFailed()
callback to the
focusRestorer()
modifier (Ie1d43) • Added androidx annotations to various graphics APIs to specify
ColorInt
,
FloatRange
,
IntRange
,
Size
and more. (Id65c8, b/290950582) • Add
showSystemUi=true
to
PreviewScreenSizes
definition (Ib61d3) m3 Version 1.2.0-alpha08 •
ColorScheme
is now Immutable, making individual color updates less efficient, but making more common usage of colors more efficient. The reasoning behind this change is that the majority of apps wouldn't have updating individual colors as a main use case. This is still possible but it will recompose more than before, in turn we significantly decrease the amount of state subscriptions through all of Material code and will impact initialization and runtime cost of more standard use cases. (Ic447d, b/297212873) • Tonal Elevation no longer animates in different interaction states to match spec. (Icdd12) • Added a new
BottomAppBar
that takes as parameter a
BottomAppBarScrollBehavior
in order to auto-hide it when content is scrolled. Also added
FabPosition.EndOverlay
allowing the FAB to overlay the bottom app bar in the scaffold instead of being anchored above it. (Iecb47) • Introduced a temporary flag to control whether Scaffold should measure its children during measurement or during placement. By default, this will measure in measurement. If you are facing issues with the new behavior, please file an issue. (I0b354) • Fixed horizontal Edge to Edge in
BottomSheet
by using the correct measurement for device screen width. (I1df0c, b/299058752) • Fixed a bug where
ModalBottomSheet
was not calling
onDismissedRequest
when dismissing it by swiping down on the sheet. (Idfdd8)
🙏🏽 1
🙏 7
👍 6
thank you color 10
z

Zoltan Demant

09/21/2023, 5:08 AM
I didnt see this anywhere in the changelog: background colors are now darker when using dynamicDarkColorScheme, I think due to this.
👀 1
d

dorche

09/21/2023, 11:57 AM
Does the non linear font scaling impact how we should test font scale? Is providing 2f for fontScale still the correct way (i.e. for scaled up preview)?
t

Travis Griggs

09/21/2023, 9:25 PM
Was just getting burned by that very last one yesterday. Hooray!
K 2
3 Views