-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
SAUL
committed
Nov 18, 2024
1 parent
4c9d2de
commit d0f8658
Showing
6 changed files
with
174 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
141 changes: 141 additions & 0 deletions
141
src/main/kotlin/ui/components/secvault/passwordinfo/CredentialForms.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,141 @@ | ||
package ui.components.secvault.passwordinfo | ||
|
||
import androidx.compose.foundation.layout.Column | ||
import androidx.compose.foundation.layout.Row | ||
import androidx.compose.foundation.layout.fillMaxWidth | ||
import androidx.compose.runtime.* | ||
import androidx.compose.ui.Modifier | ||
import ui.components.UnderLineTextFiled | ||
|
||
@Composable | ||
fun PasswordCredentialForm() { | ||
var userName by remember { mutableStateOf("") } | ||
|
||
Column() { | ||
Row(modifier = Modifier.weight(1f)) { | ||
UnderLineTextFiled( | ||
field = userName, | ||
onFieldChange = { userName = it }, | ||
label = "Username", | ||
modifier = Modifier.fillMaxWidth() | ||
) | ||
} | ||
|
||
Row(modifier = Modifier.weight(1f)) { | ||
UnderLineTextFiled( | ||
field = userName, | ||
onFieldChange = { userName = it }, | ||
label = "Password", | ||
modifier = Modifier.fillMaxWidth(), | ||
isPassword = true | ||
) | ||
} | ||
|
||
Row(modifier = Modifier.weight(1f)) { | ||
UnderLineTextFiled( | ||
field = userName, | ||
onFieldChange = { userName = it }, | ||
label = "Email", | ||
modifier = Modifier.fillMaxWidth() | ||
) | ||
} | ||
|
||
Row(modifier = Modifier.weight(1f)) { | ||
UnderLineTextFiled( | ||
field = userName, | ||
onFieldChange = { userName = it }, | ||
label = "Website", | ||
modifier = Modifier.fillMaxWidth() | ||
) | ||
} | ||
|
||
} | ||
} | ||
|
||
@Composable | ||
fun CreditCardCredentialForm() { | ||
var userName by remember { mutableStateOf("") } | ||
|
||
Column() { | ||
Row(modifier = Modifier.weight(1f)) { | ||
UnderLineTextFiled( | ||
field = userName, | ||
onFieldChange = { userName = it }, | ||
label = "Bank Name", | ||
modifier = Modifier.fillMaxWidth() | ||
) | ||
} | ||
|
||
Row(modifier = Modifier.weight(1f)) { | ||
UnderLineTextFiled( | ||
field = userName, | ||
onFieldChange = { userName = it }, | ||
label = "Card Owner", | ||
modifier = Modifier.fillMaxWidth() | ||
) | ||
} | ||
|
||
Row(modifier = Modifier.weight(1f)) { | ||
UnderLineTextFiled( | ||
field = userName, | ||
onFieldChange = { userName = it }, | ||
label = "Card Number", | ||
modifier = Modifier.fillMaxWidth() | ||
) | ||
} | ||
|
||
Row(modifier = Modifier.weight(1f)) { | ||
UnderLineTextFiled( | ||
field = userName, | ||
onFieldChange = { userName = it }, | ||
label = "CVC", | ||
modifier = Modifier.fillMaxWidth() | ||
) | ||
} | ||
|
||
Row(modifier = Modifier.weight(1f)) { | ||
UnderLineTextFiled( | ||
field = userName, | ||
onFieldChange = { userName = it }, | ||
label = "Pin", | ||
modifier = Modifier.fillMaxWidth() | ||
) | ||
} | ||
|
||
Row(modifier = Modifier.weight(1f)) { | ||
UnderLineTextFiled( | ||
field = userName, | ||
onFieldChange = { userName = it }, | ||
label = "Expiry Date", | ||
modifier = Modifier.fillMaxWidth() | ||
) | ||
} | ||
|
||
Row(modifier = Modifier.weight(1f)) { | ||
UnderLineTextFiled( | ||
field = userName, | ||
onFieldChange = { userName = it }, | ||
label = "Notes", | ||
modifier = Modifier.fillMaxWidth(), | ||
singleLine = false | ||
) | ||
} | ||
} | ||
} | ||
|
||
@Composable | ||
fun NotesCredentialForm() { | ||
var userName by remember { mutableStateOf("") } | ||
|
||
Column() { | ||
Row(modifier = Modifier.weight(1f)) { | ||
UnderLineTextFiled( | ||
field = userName, | ||
onFieldChange = { userName = it }, | ||
label = "Notes", | ||
modifier = Modifier.fillMaxWidth(), | ||
singleLine = false | ||
) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters