Skip to content

Commit

Permalink
Final UI fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammedYakub committed Mar 14, 2021
1 parent 146518d commit e9985c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import android.content.Context
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.*
Expand Down Expand Up @@ -79,7 +80,7 @@ fun LoginScreen1(value: AppThemeState, onLoginSuccess: () -> Unit) {
val emailInteractionState = remember { MutableInteractionSource() }
val keyboardController = LocalSoftwareKeyboardController.current

Box(modifier = Modifier.fillMaxHeight(), content = {
Box(modifier = Modifier.fillMaxHeight().background(color = MaterialTheme.colors.surface), content = {
Image(
imageVector = ImageVector.vectorResource(id = if (value.darkTheme) R.drawable.dark_login else R.drawable.light_login),
contentDescription = "background",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package com.example.androiddevchallenge.ui
import androidx.compose.animation.Crossfade
import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.*
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.shape.RoundedCornerShape
Expand Down Expand Up @@ -37,7 +38,7 @@ fun WelcomeOnboard(value: AppThemeState, navController: NavHostController) {
@Composable
fun WelcomeScreen(value: AppThemeState, navController: NavHostController) {
Scaffold {
Box(modifier = Modifier.fillMaxHeight() ,content = {
Box(modifier = Modifier.fillMaxHeight().background(color = MaterialTheme.colors.surface) ,content = {
Image(imageVector = ImageVector.vectorResource(id = if(value.darkTheme) R.drawable.dark_welcome else R.drawable.light_welcome), contentDescription = "background",modifier = Modifier.fillMaxSize(), contentScale = ContentScale.FillBounds)
LazyColumn(modifier = Modifier.fillMaxWidth()
.fillMaxHeight()
Expand Down

0 comments on commit e9985c6

Please sign in to comment.