|
@@ -55,6 +55,7 @@ import androidx.lifecycle.viewmodel.compose.viewModel
|
|
|
import androidx.navigation.NavHostController
|
|
|
import com.fastest.pass.R
|
|
|
import com.fastest.pass.home.presentation.ui.components.GapLine
|
|
|
+import com.fastest.pass.security.presentation.ui.components.AddFeaturesRow
|
|
|
|
|
|
enum class ClickType {
|
|
|
OPEN_LOGIN_SCREEN
|
|
@@ -99,6 +100,8 @@ fun AccountScreen(clickType: (ClickType) -> Unit) {
|
|
|
.padding(bottom = 20.dp)
|
|
|
) {
|
|
|
Spacer(modifier = Modifier.height(50.dp))
|
|
|
+ AddFeaturesRow(R.drawable.generate_password, R.string.generate_password, R.string.generate_robust)
|
|
|
+ Spacer(modifier = Modifier.height(20.dp))
|
|
|
AddFeaturesRowAS(icon = R.drawable.about, title = R.string.about) {}
|
|
|
Spacer(modifier = Modifier.height(20.dp))
|
|
|
AddFeaturesRowAS(icon = R.drawable.help, title = R.string.helpandsupport) {}
|
|
@@ -327,3 +330,77 @@ fun BoxScope.LogoutDialog(
|
|
|
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+@Composable
|
|
|
+fun ColumnScope.AddFeaturesRowAS(icon: Int, title: Int, desc: Int) {
|
|
|
+ Row(
|
|
|
+ modifier = Modifier
|
|
|
+ .border(
|
|
|
+ border = BorderStroke(1.dp, colorResource(id = R.color.white)),
|
|
|
+ shape = RoundedCornerShape(15.dp)
|
|
|
+ )
|
|
|
+ .clip(RoundedCornerShape(15.dp))
|
|
|
+ .background(colorResource(id = R.color.white))
|
|
|
+ .padding(vertical = 15.dp)
|
|
|
+ .fillMaxWidth(),
|
|
|
+ horizontalArrangement = Arrangement.Start,
|
|
|
+ verticalAlignment = Alignment.CenterVertically
|
|
|
+ ) {
|
|
|
+ Surface(
|
|
|
+ modifier = Modifier.padding(start = 10.dp),
|
|
|
+ color = Color.Transparent
|
|
|
+ ) {
|
|
|
+ Image(
|
|
|
+ painter = painterResource(id = icon),
|
|
|
+ contentDescription = "Icon",
|
|
|
+ modifier = Modifier
|
|
|
+ .padding(start = 0.dp)
|
|
|
+ .size(34.dp)
|
|
|
+ .weight(1f),
|
|
|
+ colorFilter = ColorFilter.tint(colorResource(id = R.color.gray_splash)),
|
|
|
+ )
|
|
|
+ }
|
|
|
+
|
|
|
+ Surface(
|
|
|
+ modifier = Modifier.padding(start = 15.dp, end = 5.dp),
|
|
|
+ color = Color.Transparent
|
|
|
+ ) {
|
|
|
+ Column {
|
|
|
+ Text(
|
|
|
+ text = stringResource(id = title),
|
|
|
+ style = MaterialTheme.typography.displayMedium,
|
|
|
+ color = colorResource(id = R.color.gray_splash),
|
|
|
+ maxLines = 1,
|
|
|
+ modifier = Modifier
|
|
|
+// .weight(1F)
|
|
|
+ )
|
|
|
+ Spacer(modifier = Modifier.height(1.dp))
|
|
|
+ Text(
|
|
|
+ text = stringResource(id = desc),
|
|
|
+ style = MaterialTheme.typography.displaySmall,
|
|
|
+ color = colorResource(id = R.color.gray_text),
|
|
|
+ modifier = Modifier
|
|
|
+// .weight(1F)
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ Spacer(modifier = Modifier.weight(1f))
|
|
|
+
|
|
|
+ Surface(
|
|
|
+ modifier = Modifier
|
|
|
+ .padding(end = 15.dp)
|
|
|
+ .align(Alignment.CenterVertically),
|
|
|
+ color = Color.Transparent
|
|
|
+ ) {
|
|
|
+ Image(
|
|
|
+ painter = painterResource(id = R.drawable.crown_premium),
|
|
|
+ contentDescription = "Front_Arrow",
|
|
|
+ modifier = Modifier
|
|
|
+ .padding(start = 0.dp, end = 0.dp)
|
|
|
+ .size(24.dp)
|
|
|
+ .weight(1f),
|
|
|
+ )
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|