Prep screens we want user to have
This commit is contained in:
1 parent
7a64c519e4
commit
ec9db509cf
5 files changed
+116
-7
No files matched your search
+4
-4
@@ -97,7 +97,7 @@ fun CreateProfileScreen(
|
|||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
value = createProfileViewModel.createProfileFormState.nameField.text.value,
|
value = createProfileViewModel.createProfileFormState.nameField.text.value,
|
||||||
onValueChange = {
|
onValueChange = {
|
||||||
|
createProfileViewModel.createProfileFormState.nameField.text.value = it
|
||||||
},
|
},
|
||||||
isError = createProfileViewModel.createProfileFormState.nameField.errorMessage.value != null,
|
isError = createProfileViewModel.createProfileFormState.nameField.errorMessage.value != null,
|
||||||
supportingText = createProfileViewModel.createProfileFormState.nameField.errorMessage.value?.let {
|
supportingText = createProfileViewModel.createProfileFormState.nameField.errorMessage.value?.let {
|
||||||
@@ -112,7 +112,7 @@ fun CreateProfileScreen(
|
|||||||
},
|
},
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
keyboardType = KeyboardType.Phone,
|
keyboardType = KeyboardType.Text,
|
||||||
),
|
),
|
||||||
label = {
|
label = {
|
||||||
Text(
|
Text(
|
||||||
@@ -144,7 +144,7 @@ fun CreateProfileScreen(
|
|||||||
modifier = Modifier.fillMaxWidth(),
|
modifier = Modifier.fillMaxWidth(),
|
||||||
value = createProfileViewModel.createProfileFormState.biographyField.text.value,
|
value = createProfileViewModel.createProfileFormState.biographyField.text.value,
|
||||||
onValueChange = {
|
onValueChange = {
|
||||||
|
createProfileViewModel.createProfileFormState.biographyField.text.value = it
|
||||||
},
|
},
|
||||||
isError = createProfileViewModel.createProfileFormState.biographyField.errorMessage.value != null,
|
isError = createProfileViewModel.createProfileFormState.biographyField.errorMessage.value != null,
|
||||||
supportingText = createProfileViewModel.createProfileFormState.biographyField.errorMessage.value?.let {
|
supportingText = createProfileViewModel.createProfileFormState.biographyField.errorMessage.value?.let {
|
||||||
@@ -159,7 +159,7 @@ fun CreateProfileScreen(
|
|||||||
},
|
},
|
||||||
maxLines = 1,
|
maxLines = 1,
|
||||||
keyboardOptions = KeyboardOptions(
|
keyboardOptions = KeyboardOptions(
|
||||||
keyboardType = KeyboardType.Phone,
|
keyboardType = KeyboardType.Text,
|
||||||
),
|
),
|
||||||
label = {
|
label = {
|
||||||
Text(
|
Text(
|
||||||
|
|||||||
@@ -0,0 +1,57 @@
|
|||||||
|
package ac.aux.compose.ui.composable
|
||||||
|
|
||||||
|
import ac.aux.compose.ui.theme.AuxTheme
|
||||||
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
|
import androidx.compose.foundation.layout.Column
|
||||||
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
|
import androidx.compose.foundation.layout.padding
|
||||||
|
import androidx.compose.material3.Scaffold
|
||||||
|
import androidx.compose.material3.Surface
|
||||||
|
import androidx.compose.material3.Text
|
||||||
|
import androidx.compose.runtime.Composable
|
||||||
|
import androidx.compose.ui.Alignment
|
||||||
|
import androidx.compose.ui.Modifier
|
||||||
|
import androidx.compose.ui.tooling.preview.Preview
|
||||||
|
import androidx.compose.ui.unit.dp
|
||||||
|
|
||||||
|
@Composable
|
||||||
|
fun FeedScreen(
|
||||||
|
text: String
|
||||||
|
) {
|
||||||
|
|
||||||
|
Scaffold { innerPadding ->
|
||||||
|
Column(
|
||||||
|
modifier = Modifier.padding(innerPadding).fillMaxSize()
|
||||||
|
) {
|
||||||
|
// Notes
|
||||||
|
// Stories/Reels
|
||||||
|
// Pictures
|
||||||
|
// Private Messages (deferred to another app)
|
||||||
|
// Notifications
|
||||||
|
Column(
|
||||||
|
modifier = Modifier.padding(20.dp).fillMaxSize(),
|
||||||
|
horizontalAlignment = Alignment.CenterHorizontally,
|
||||||
|
verticalArrangement = Arrangement.Center
|
||||||
|
) {
|
||||||
|
Text(
|
||||||
|
"\"$text\" functionality coming soon",
|
||||||
|
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Preview
|
||||||
|
@Composable
|
||||||
|
private fun FeedScreenPreview() {
|
||||||
|
AuxTheme {
|
||||||
|
Surface(
|
||||||
|
modifier = Modifier.padding(20.dp)
|
||||||
|
) {
|
||||||
|
FeedScreen(
|
||||||
|
"Feed"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -69,7 +69,7 @@ fun LandingScreen(
|
|||||||
}
|
}
|
||||||
|
|
||||||
Text(
|
Text(
|
||||||
text = "Sign in to Torch via nsec, or remote signer",
|
text = "Sign in to Aux via nsec, or remote signer",
|
||||||
modifier = Modifier.padding(10.dp),
|
modifier = Modifier.padding(10.dp),
|
||||||
style = MaterialTheme.typography.labelSmall,
|
style = MaterialTheme.typography.labelSmall,
|
||||||
textAlign = TextAlign.Center
|
textAlign = TextAlign.Center
|
||||||
@@ -89,7 +89,7 @@ fun LandingScreen(
|
|||||||
|
|
||||||
}
|
}
|
||||||
Text(
|
Text(
|
||||||
text = "If you are new to Torch or just want to create a fresh profile",
|
text = "If you are new to Aux or just want to create a fresh profile",
|
||||||
modifier = Modifier.padding(10.dp),
|
modifier = Modifier.padding(10.dp),
|
||||||
style = MaterialTheme.typography.labelSmall,
|
style = MaterialTheme.typography.labelSmall,
|
||||||
textAlign = TextAlign.Center
|
textAlign = TextAlign.Center
|
||||||
|
|||||||
+52
@@ -0,0 +1,52 @@
|
|||||||
|
package ac.aux.compose.ui.composable
|
||||||
|
|
||||||
|
import ac.aux.compose.ui.theme.AuxTheme
|
||||||
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
|
import androidx.compose.foundation.layout.Column
|
||||||
|
import androidx.compose.foundation.layout.fillMaxSize
|
||||||
|
import androidx.compose.foundation.layout.padding
|
||||||
|
import androidx.compose.material3.Scaffold
|
||||||
|
import androidx.compose.material3.Surface
|
||||||
|
import androidx.compose.material3.Text
|
||||||
|
import androidx.compose.runtime.Composable
|
||||||
|
import androidx.compose.ui.Alignment
|
||||||
|
import androidx.compose.ui.Modifier
|
||||||
|
import androidx.compose.ui.tooling.preview.Preview
|
||||||
|
import androidx.compose.ui.unit.dp
|
||||||
|
|
||||||
|
@Composable
|
||||||
|
fun SocialPreconditionScreen(
|
||||||
|
text: String
|
||||||
|
) {
|
||||||
|
Scaffold { innerPadding ->
|
||||||
|
Column(
|
||||||
|
modifier = Modifier.padding(innerPadding).fillMaxSize()
|
||||||
|
) {
|
||||||
|
// Invite A Friend
|
||||||
|
// Accept an invite
|
||||||
|
Column(
|
||||||
|
modifier = Modifier.padding(20.dp).fillMaxSize(),
|
||||||
|
horizontalAlignment = Alignment.CenterHorizontally,
|
||||||
|
verticalArrangement = Arrangement.Center
|
||||||
|
) {
|
||||||
|
Text(
|
||||||
|
"\"$text\" functionality coming soon",
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@Preview
|
||||||
|
@Composable
|
||||||
|
private fun SocialPreconditionScreenPreview() {
|
||||||
|
AuxTheme {
|
||||||
|
Surface(
|
||||||
|
modifier = Modifier.padding(20.dp)
|
||||||
|
) {
|
||||||
|
SocialPreconditionScreen(
|
||||||
|
"Social Precondition"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+1
-1
@@ -46,7 +46,7 @@ fun AuxNavHost(
|
|||||||
CreateProfileScreen(
|
CreateProfileScreen(
|
||||||
onNavigateToChatListRoute = {
|
onNavigateToChatListRoute = {
|
||||||
navController.navigate(
|
navController.navigate(
|
||||||
route = ImplementationPendingRoute("Chat List")
|
route = ImplementationPendingRoute("Feed")
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user