Skip to content

Commit 2d91f52

Browse files
committed
Fix: correct Alignment import from ui instead of foundation.layout
1 parent b181504 commit 2d91f52

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

app/src/main/java/com/opentasker/ui/screens/ProfileListScreen.kt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
package com.opentasker.ui.screens
22

33
import androidx.compose.foundation.background
4-
import androidx.compose.foundation.layout.Alignment
4+
import androidx.compose.foundation.lazy.LazyColumn
5+
import androidx.compose.foundation.lazy.items
6+
import androidx.compose.foundation.shape.RoundedCornerShape
7+
import androidx.compose.foundation.text.selection.TextOverflow
58
import androidx.compose.foundation.layout.Arrangement
69
import androidx.compose.foundation.layout.Column
710
import androidx.compose.foundation.layout.Row
@@ -11,10 +14,6 @@ import androidx.compose.foundation.layout.fillMaxWidth
1114
import androidx.compose.foundation.layout.height
1215
import androidx.compose.foundation.layout.padding
1316
import androidx.compose.foundation.layout.width
14-
import androidx.compose.foundation.lazy.LazyColumn
15-
import androidx.compose.foundation.lazy.items
16-
import androidx.compose.foundation.shape.RoundedCornerShape
17-
import androidx.compose.foundation.text.selection.TextOverflow
1817
import androidx.compose.material.icons.Icons
1918
import androidx.compose.material.icons.filled.Add
2019
import androidx.compose.material.icons.filled.Delete
@@ -36,7 +35,9 @@ import androidx.compose.runtime.Composable
3635
import androidx.compose.runtime.collectAsState
3736
import androidx.compose.runtime.getValue
3837
import androidx.compose.runtime.rememberCoroutineScope
38+
import androidx.compose.ui.Alignment
3939
import androidx.compose.ui.Modifier
40+
import androidx.compose.ui.text.style.TextAlign
4041
import androidx.compose.ui.unit.dp
4142
import androidx.lifecycle.ViewModel
4243
import androidx.lifecycle.ViewModelProvider
@@ -146,7 +147,7 @@ fun ProfileListScreen(
146147
"Create your first automation profile to get started",
147148
style = MaterialTheme.typography.bodyMedium,
148149
color = MaterialTheme.colorScheme.onSurfaceVariant,
149-
textAlign = androidx.compose.ui.text.style.TextAlign.Center
150+
textAlign = TextAlign.Center
150151
)
151152
Spacer(modifier = Modifier.height(24.dp))
152153
ElevatedButton(onClick = onCreateProfile) {

0 commit comments

Comments
 (0)