This commit is contained in:
Ania-Krivs 2025-02-20 16:33:30 +03:00
parent 32ae841387
commit 291a812316

View File

@ -3,28 +3,21 @@ package com.example.piiiiiiiiiiig
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.foundation.Image
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.offset
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.OutlinedTextField
import androidx.compose.material3.Scaffold
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
@ -34,32 +27,23 @@ import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Alignment.Companion.CenterVertically
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.layout.ContentScale
import androidx.compose.ui.res.painterResource
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextAlign
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.IntOffset
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.example.piiiiiiiiiiig.ui.theme.PiiiiiiiiiiigTheme
import kotlinx.coroutines.launch
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
enableEdgeToEdge()
setContent {
PiiiiiiiiiiigTheme {
LoginScreen()
LoginScreen() //similarly with FindUser() Done() Error()
}
}
}
}
@Composable
@ -136,7 +120,6 @@ fun LoginScreen() {
Row(
modifier = Modifier.fillMaxSize(),
// verticalAlignment = Alignment.CenterVertically
) {
Text(
@ -149,7 +132,6 @@ fun LoginScreen() {
Row(
modifier = Modifier.fillMaxSize(),
// verticalAlignment = Alignment.CenterVertically
) {
Text(
@ -247,7 +229,6 @@ fun FindUser() {
Row(
modifier = Modifier.fillMaxSize(),
// verticalAlignment = Alignment.CenterVertically
) {
Text(
@ -260,7 +241,6 @@ fun FindUser() {
Row(
modifier = Modifier.fillMaxSize(),
// verticalAlignment = Alignment.CenterVertically
) {
Text(