mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-23 03:25:06 +03:00
Implement new account deletion and auth flows
Signed-off-by: denis0001-dev <denis0001.dev@ya.ru>
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package com.pr0gramm3r101.utils
|
||||
|
||||
import androidx.compose.foundation.layout.ExperimentalLayoutApi
|
||||
import androidx.compose.foundation.layout.WindowInsets
|
||||
import androidx.compose.foundation.layout.ime
|
||||
import androidx.compose.foundation.layout.imeAnimationSource
|
||||
import androidx.compose.foundation.layout.imeAnimationTarget
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.ui.platform.LocalDensity
|
||||
|
||||
@OptIn(ExperimentalLayoutApi::class)
|
||||
@Composable
|
||||
actual fun rememberImeMotion(): ImeMotion {
|
||||
val density = LocalDensity.current
|
||||
return ImeMotion(
|
||||
currentBottomPx = WindowInsets.ime.getBottom(density),
|
||||
sourceBottomPx = WindowInsets.imeAnimationSource.getBottom(density),
|
||||
targetBottomPx = WindowInsets.imeAnimationTarget.getBottom(density),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user