@@ -99,9 +99,9 @@ fun MarketScreen(modifier: Modifier = Modifier) {
9999 ) {
100100 // Header
101101 Column (Modifier .fillMaxWidth().statusBarsPadding().padding(16 .dp)) {
102- Row (verticalAlignment = Alignment . CenterVertically ) {
103- Text ( AppStrings .get( " market_rates " , lang), fontSize = 24 .sp, fontWeight = FontWeight . ExtraBold , color = NuKropText )
104- Spacer ( Modifier .width( 12 .dp))
102+ Text ( AppStrings .get( " market_rates " , lang), fontSize = 24 .sp, fontWeight = FontWeight . ExtraBold , color = NuKropText )
103+ Spacer ( Modifier .height( 8 .dp) )
104+ Row (verticalAlignment = Alignment . CenterVertically , modifier = Modifier .fillMaxWidth()) {
105105 // Live Cached Badge
106106 Row (
107107 verticalAlignment = Alignment .CenterVertically ,
@@ -274,7 +274,13 @@ fun MarketScreen(modifier: Modifier = Modifier) {
274274 } else if (error != null ) {
275275 Text (error, color = NuKropWarning , modifier = Modifier .align(Alignment .Center ))
276276 } else {
277- Text (" No data available from Gov API." , color = NuKropTextMuted , modifier = Modifier .align(Alignment .Center ))
277+ // Not loading, but records are empty
278+ Column (horizontalAlignment = Alignment .CenterHorizontally , modifier = Modifier .align(Alignment .Center )) {
279+ Icon (Icons .Filled .Warning , contentDescription = null , tint = NuKropTextDim , modifier = Modifier .size(48 .dp))
280+ Spacer (Modifier .height(16 .dp))
281+ Text (" No market rates found." , color = NuKropTextMuted , fontWeight = FontWeight .SemiBold , fontSize = 16 .sp)
282+ Text (" Try a different crop or state." , color = NuKropTextDim , fontSize = 13 .sp)
283+ }
278284 }
279285 }
280286 }
0 commit comments