treatmaster
08/08/2021, 3:36 AMAbhishek Dewan
08/08/2021, 3:58 AMtreatmaster
08/08/2021, 4:20 AMNabeel
08/08/2021, 5:08 AMAbhishek Dewan
08/08/2021, 5:30 AMAbhishek Dewan
08/08/2021, 5:31 AMLaunchedEffect{
delay(1000)
isSplashing = true
}
Abhishek Dewan
08/08/2021, 5:31 AMtreatmaster
08/08/2021, 8:00 AMtreatmaster
08/08/2021, 8:02 AMNabeel
08/08/2021, 9:24 AMtreatmaster
08/08/2021, 4:03 PMNabeel
08/08/2021, 4:05 PMtreatmaster
08/09/2021, 1:24 AMnglauber
08/09/2021, 1:56 PMFullScreenTranslucent(
windowBackgroundColor = AppTheme.colors.surfaceDark,
) {
SplashScreenContent()
}
FullScreenTranslucent
is a custom composable which basically do this:
val context = LocalContext.current
if (context is Activity) {
context.window.run {
...
decorView.setBackgroundColor(
windowBackgroundColor
)
}
}
content()
treatmaster
08/11/2021, 1:19 AM