Remove @Composable from Modifier factories
This CL removes the @Composable annotation from Modifier factories and
replace them by Modifier.composed {} instead. As discussed in
http://shortn/_lBPKSM7VLn, making a Modifier factory @Composable can
have unexpected side effects where values are remember-ed longer than
they should or disposable not disposed when the associated element is
removed from composition.
In later CLs, we will migrate those APIs to the Node API instead.
Bug: 291566282
Test: atest PlatformComposeSceneTransitionLayoutTests
Change-Id: Ibb36ff90e8d438e1a18c3488109cfacf658d3d00
6 files changed