-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Featute/Sign Up UI #58
base: main
Are you sure you want to change the base?
Conversation
&& password.isNotEmpty() && !showPasswordError && | ||
confirmPassword.isNotEmpty() && !showConfirmPasswordError | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please don't forget to add a new line here
@Preview | ||
@Composable | ||
fun SignUpScreen( | ||
viewModel: SignUpViewModel = SignUpViewModel(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we have any DI framework into the base yet? if so, might be better to use it. What do you think?
<string name="sign_up_name_error">Name not valid</string> | ||
<string name="sign_up_confirm_password_label">Confirm Password</string> | ||
<string name="sign_up_confirm_password_error">Passwords don\'t match</string> | ||
<string name="sign_up_button">SIGN UP</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please capitalize only first letter Sign up
. Then use .uppercase() in the code if needed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Just left a comment
import com.rootstrap.androidcomposebase.ui.pages.sign_up.SignUpScreen | ||
import com.rootstrap.androidcomposebase.ui.pages.sign_up.SignUpViewModel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove this if not needed.
val name: String = "", | ||
val showNameError: Boolean = false, | ||
val email: String = "", | ||
val showEmailError: Boolean = false, | ||
val password: String = "", | ||
val showPasswordError: Boolean = false, | ||
val confirmPassword: String = "", | ||
val showConfirmPasswordError: Boolean = false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rename:
name -> nameInput
email -> emailInput
password -> passwordInput
confirmPassword -> confirmPasswordInput
import kotlinx.coroutines.flow.update | ||
import java.util.regex.Pattern | ||
|
||
class SignUpViewModel : ViewModel() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
before merging wait for the previous PR
#57
and reuse the state management logic,
if need more context write to @agustinkoll-rootstrap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait for the previous PR
#57
ISSUE [#6]
Description
Tasks
SignUpScreen
SIGN UP
buttonSignUpViewModel
Preview
device-2023-08-16-150431.mp4
Notes