11package dev.johnoreilly.common.ui
22
3+ import androidx.compose.foundation.layout.Box
4+ import androidx.compose.foundation.layout.Column
5+ import androidx.compose.foundation.layout.fillMaxSize
36import androidx.compose.material.icons.Icons
47import androidx.compose.material.icons.automirrored.filled.List
58import androidx.compose.material.icons.filled.DateRange
@@ -20,10 +23,14 @@ import androidx.compose.runtime.getValue
2023import androidx.compose.runtime.mutableStateOf
2124import androidx.compose.runtime.remember
2225import androidx.compose.runtime.setValue
26+ import androidx.compose.ui.Alignment
27+ import androidx.compose.ui.Modifier
2328import androidx.compose.ui.graphics.vector.ImageVector
29+ import androidx.compose.ui.text.style.TextAlign
2430import androidx.compose.ui.unit.dp
2531import androidx.navigation3.runtime.NavKey
2632import androidx.navigation3.runtime.entryProvider
33+ import androidx.navigation3.runtime.rememberNavBackStack
2734import androidx.navigation3.ui.NavDisplay
2835import dev.johnoreilly.common.ui.fixtures.FixturesListView
2936import dev.johnoreilly.common.ui.leagues.LeagueListView
@@ -95,7 +102,15 @@ fun App() {
95102 entry<PlayerList >(
96103 metadata = ListDetailSceneStrategy .listPane(
97104 detailPlaceholder = {
98- Text (" Choose a player from the list" )
105+ Box (
106+ modifier = Modifier .fillMaxSize(),
107+ contentAlignment = Alignment .Center
108+ ) {
109+ Text (
110+ text = " Choose a player from the list" ,
111+ textAlign = TextAlign .Center
112+ )
113+ }
99114 }
100115 )
101116 ) {
0 commit comments