File tree 3 files changed +7
-5
lines changed
androidApp/src/main/java/dev/johnoreilly/starwars/androidApp
compose-web/src/wasmJsMain/kotlin 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ import androidx.activity.ComponentActivity
7
7
import androidx.activity.compose.setContent
8
8
import androidx.compose.foundation.layout.Column
9
9
import androidx.compose.foundation.layout.Row
10
+ import androidx.compose.foundation.layout.fillMaxSize
10
11
import androidx.compose.foundation.layout.fillMaxWidth
11
12
import androidx.compose.foundation.layout.navigationBarsPadding
12
13
import androidx.compose.foundation.layout.padding
@@ -141,7 +142,7 @@ const val PersonListTag = "PersonList"
141
142
142
143
@Composable
143
144
fun PeopleList (people : List <PersonFragment >) {
144
- LazyColumn (modifier = Modifier .testTag(PersonListTag )) {
145
+ LazyColumn (modifier = Modifier .fillMaxSize(). testTag(PersonListTag )) {
145
146
items(people) { person ->
146
147
PersonView (person)
147
148
}
@@ -181,7 +182,7 @@ const val FilmListTag = "FilmList"
181
182
182
183
@Composable
183
184
fun FilmList (filmList : List <FilmFragment >) {
184
- LazyColumn (modifier = Modifier .testTag(FilmListTag )) {
185
+ LazyColumn (modifier = Modifier .fillMaxSize(). testTag(FilmListTag )) {
185
186
items(items = filmList, itemContent = { film ->
186
187
FilmView (film)
187
188
})
Original file line number Diff line number Diff line change 1
1
import androidx.compose.foundation.layout.Column
2
2
import androidx.compose.foundation.layout.Row
3
+ import androidx.compose.foundation.layout.fillMaxSize
3
4
import androidx.compose.foundation.layout.fillMaxWidth
4
5
import androidx.compose.foundation.layout.navigationBarsPadding
5
6
import androidx.compose.foundation.layout.padding
@@ -175,7 +176,7 @@ const val PersonListTag = "PersonList"
175
176
176
177
@Composable
177
178
fun PeopleList (people : List <PersonFragment >) {
178
- LazyColumn (modifier = Modifier .testTag(PersonListTag )) {
179
+ LazyColumn (modifier = Modifier .fillMaxSize(). testTag(PersonListTag )) {
179
180
items(people) { person ->
180
181
PersonView (person)
181
182
}
@@ -215,7 +216,7 @@ const val FilmListTag = "FilmList"
215
216
216
217
@Composable
217
218
fun FilmList (filmList : List <FilmFragment >) {
218
- LazyColumn (modifier = Modifier .testTag(FilmListTag )) {
219
+ LazyColumn (modifier = Modifier .fillMaxSize(). testTag(FilmListTag )) {
219
220
items(items = filmList, itemContent = { film ->
220
221
FilmView (film)
221
222
})
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ kmpNativeCoroutines = "1.0.0-ALPHA-28-kotlin-2.0.0-RC2"
11
11
androidxActivity = " 1.9.0"
12
12
androidxComposeBom = " 2024.05.00"
13
13
androidx-navigation = " 2.8.0-alpha02"
14
- androidx-lifecycle = " 2.8.0-beta02 "
14
+ androidx-lifecycle = " 2.8.0-rc01 "
15
15
accompanist = " 0.30.1"
16
16
horologist = " 0.6.10"
17
17
wearCompose = " 1.3.1"
You can’t perform that action at this time.
0 commit comments