This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.compose.animation.Animatable | |
import androidx.compose.animation.core.Animatable | |
import androidx.compose.animation.core.LinearEasing | |
import androidx.compose.animation.core.tween | |
import androidx.compose.foundation.background | |
import androidx.compose.foundation.layout.Box | |
import androidx.compose.foundation.layout.Column | |
import androidx.compose.foundation.layout.fillMaxSize | |
import androidx.compose.material3.MaterialTheme | |
import androidx.compose.material3.Text |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import androidx.compose.runtime.Composable | |
import androidx.compose.runtime.getValue | |
import androidx.compose.ui.Modifier | |
import androidx.lifecycle.compose.collectAsStateWithLifecycle | |
import org.jetbrains.compose.ui.tooling.preview.Preview | |
import org.koin.androidx.compose.koinViewModel | |
@Composable | |
fun $NAME$Route( | |
modifier: Modifier = Modifier, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@OptIn(FlowPreview::class) | |
@Composable | |
fun LazyColumnPosition(modifier: Modifier = Modifier) { | |
val context = LocalContext.current | |
val pref by lazy { | |
context.getSharedPreferences("prefs", MODE_PRIVATE) | |
} | |
val scrollPosition = pref.getInt("scroll_position", 0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[versions] | |
accompanist = "0.29.2-rc" | |
androidGradlePlugin = "7.4.2" | |
androidxComposeBom = "2023.01.00" | |
androidxComposeCompiler = "1.4.6" | |
androidxCore = "1.10.0-rc01" | |
androidMaterial = "1.9.0-alpha02" | |
androidxAppCompat = "1.7.0-alpha02" | |
androidxActivity = "1.7.1" | |
markdownDependency = "0.3.2" |