Explorar o código

Fix interface

Lerka hai 1 mes
pai
achega
0f0ca25814

+ 5 - 3
app/src/main/java/com/example/myapplication/view/theme/MainActivity/components/EditorList.kt

@@ -5,10 +5,12 @@ import android.content.SharedPreferences.Editor
 import android.util.Log
 import androidx.compose.material3.Text
 import androidx.compose.foundation.Image
+import androidx.compose.foundation.layout.Arrangement
 import androidx.compose.foundation.layout.Box
 import androidx.compose.foundation.layout.fillMaxWidth
 import androidx.compose.foundation.layout.height
 import androidx.compose.foundation.layout.padding
+import androidx.compose.foundation.layout.width
 import androidx.compose.foundation.lazy.LazyColumn
 import androidx.compose.foundation.lazy.items
 import androidx.compose.material3.CircularProgressIndicator
@@ -51,7 +53,7 @@ fun EditorList(){
     }
 
 
-    LazyColumn {
+    LazyColumn (horizontalAlignment = Alignment.CenterHorizontally, verticalArrangement = Arrangement.Center){
         items(
             editors,
             key = {editors -> editors.id},
@@ -75,8 +77,8 @@ fun EditorList(){
             {
                 Image(
                     modifier = Modifier
-                        .fillMaxWidth()
-                        .height(200.dp),
+                        .width(200.dp)
+                        .height(250.dp),
                     painter = imageState.painter,
                     contentDescription ="",
                     contentScale = ContentScale.Crop