fix(deps): update android.gradle.plugin to v8.10.0 (#4687)
* fix(deps): update android.gradle.plugin to v8.10.0 * Update lint version to 8.11.0-alpha09 * Fix lint false positive. Error: Modifier factory functions must use the receiver Modifier instance [ModifierFactoryUnreferencedReceiver from androidx.compose.ui] --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Benoit Marty <benoit@matrix.org>
This commit is contained in:
@@ -15,13 +15,13 @@ import androidx.compose.ui.unit.IntOffset
|
||||
* Horizontally aligns the content to the center of the space.
|
||||
* Vertically aligns the bottom edge of the content to the center of the space.
|
||||
*/
|
||||
fun Modifier.centerBottomEdge(scope: BoxScope): Modifier = with(scope) {
|
||||
then(
|
||||
fun Modifier.centerBottomEdge(scope: BoxScope): Modifier = this.then(
|
||||
with(scope) {
|
||||
Modifier.align { size, space, _ ->
|
||||
IntOffset(
|
||||
x = (space.width - size.width) / 2,
|
||||
y = space.height / 2 - size.height,
|
||||
)
|
||||
}
|
||||
)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user