Skip to content

Commit

Permalink
Fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
aritra-tech committed Mar 11, 2024
1 parent 799b94b commit 3cefd60
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class PasswordGeneratorViewModel : ViewModel() {
class PasswordGeneratorViewModel @Inject constructor() : ViewModel() {

private val _password = MutableLiveData<String>()
val password: LiveData<String> = _password
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import androidx.activity.ComponentActivity
import androidx.activity.SystemBarStyle
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
Expand All @@ -13,6 +14,7 @@ import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Icon
import androidx.compose.material3.IconButton
import androidx.compose.material3.Scaffold
Expand Down Expand Up @@ -40,7 +42,9 @@ import com.geekymusketeers.uncrack.ui.theme.OnPrimaryContainerLight
import com.geekymusketeers.uncrack.ui.theme.PrimaryLight
import com.geekymusketeers.uncrack.ui.theme.UnCrackTheme
import com.geekymusketeers.uncrack.ui.theme.medium16
import dagger.hilt.android.AndroidEntryPoint

@AndroidEntryPoint
class LoginScreens : ComponentActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
Expand Down Expand Up @@ -149,14 +153,18 @@ fun LoginContent(modifier: Modifier = Modifier) {
enabled = false
)

Spacer(modifier = Modifier.height(10.dp))
Spacer(modifier = Modifier.height(15.dp))

Row {
Row(
modifier = Modifier.fillMaxWidth(),
horizontalArrangement = Arrangement.Center
) {
Text(
text = stringResource(R.string.don_t_have_an_account),
style = medium16.copy(color = OnPrimaryContainerLight)
)

Spacer(modifier = Modifier.width(8.dp))
Text(
text = stringResource(R.string.create),
style = medium16.copy(color = PrimaryLight)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,15 @@ import com.geekymusketeers.uncrack.ui.theme.DMSansFontFamily
import com.geekymusketeers.uncrack.ui.theme.OnSurfaceLight
import com.geekymusketeers.uncrack.ui.theme.OnSurfaceVariantLight
import com.geekymusketeers.uncrack.ui.theme.PrimaryDark
import com.geekymusketeers.uncrack.ui.theme.UnCrackTheme
import com.geekymusketeers.uncrack.ui.theme.navigationTopBarHeight
import com.geekymusketeers.uncrack.ui.theme.normal16
import com.geekymusketeers.uncrack.util.UtilsKt.findActivity
import com.geekymusketeers.uncrack.util.onClick
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.launch

@AndroidEntryPoint
class OnboardingScreen : ComponentActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
Expand All @@ -68,7 +71,9 @@ class OnboardingScreen : ComponentActivity() {
super.onCreate(savedInstanceState)

setContent {
OnboardingContent(this@OnboardingScreen)
UnCrackTheme {
OnboardingContent(this@OnboardingScreen)
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,11 @@ import androidx.compose.ui.res.painterResource
import androidx.compose.ui.unit.dp
import com.geekymusketeers.uncrack.R
import com.geekymusketeers.uncrack.ui.theme.BackgroundLight
import com.geekymusketeers.uncrack.ui.theme.UnCrackTheme
import dagger.hilt.android.AndroidEntryPoint
import kotlinx.coroutines.delay

@AndroidEntryPoint
@SuppressLint("CustomSplashScreen")
class SplashScreen : ComponentActivity() {

Expand All @@ -50,7 +53,9 @@ class SplashScreen : ComponentActivity() {
super.onCreate(savedInstanceState)

setContent {
SplashContent(this@SplashScreen)
UnCrackTheme {
SplashContent(this@SplashScreen)
}
}
}
}
Expand Down

0 comments on commit 3cefd60

Please sign in to comment.