Skip to content

Commit

Permalink
-Splash Enhancement
Browse files Browse the repository at this point in the history
  • Loading branch information
KhubaibKhan4 committed Oct 7, 2024
1 parent 2758cfe commit a4ca796
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.WindowInsets
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.navigationBars
import androidx.compose.foundation.layout.windowInsetsPadding
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
Expand Down Expand Up @@ -51,7 +54,8 @@ fun SplashScreen() {
fontWeight = FontWeight.Normal,
textAlign = TextAlign.Center,
color = Color.White,
modifier = Modifier.align(Alignment.BottomCenter)
modifier = Modifier.windowInsetsPadding(WindowInsets.navigationBars)
.align(Alignment.BottomCenter)
)
}
}

0 comments on commit a4ca796

Please sign in to comment.