Skip to content

Commit

Permalink
feat: Improve text fields and FABs
Browse files Browse the repository at this point in the history
Improved the keyboard actions for text fields, making them more user-friendly.
Started working on entry animations for FABs to provide a better user experience.
Added some small code improvements to enhance overall code quality.
  • Loading branch information
Mihai-Cristian Condrea committed Nov 23, 2024
1 parent 69bee4b commit f010583
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ android {
applicationId = "com.d4rk.cartcalculator"
minSdk = 23
targetSdk = 35
versionCode = 73
versionCode = 75
versionName = "1.1.2"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
resourceConfigurations += listOf(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,6 @@ fun AddNewCartAlertDialogContent(
Spacer(modifier = Modifier.height(12.dp))
Text(text = stringResource(id = R.string.summary_cart_dialog))
}
newCart.value =
ShoppingCartTable(name = nameText.value.ifEmpty { defaultName } , date = currentDate)
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import android.app.Application
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.State
import androidx.compose.runtime.mutableStateOf
import androidx.lifecycle.AndroidViewModel
import androidx.lifecycle.viewModelScope
import com.d4rk.cartcalculator.ui.viewmodel.BaseViewModel
import com.d4rk.cartcalculator.utils.IntentUtils
Expand All @@ -27,7 +26,7 @@ class HelpViewModel(application: Application) : BaseViewModel(application) {

private fun initializeVisibilityStates() {
viewModelScope.launch(coroutineExceptionHandler) {
delay(timeMillis = 50L)
delay(timeMillis = 100L)
showFab()
}
}
Expand Down

0 comments on commit f010583

Please sign in to comment.