refactor: move legend row outside of the chart container in AnalyticsScreen
This commit is contained in:
@@ -324,34 +324,36 @@ fun SCurveCard(analyticsState: AnalyticsState) {
|
||||
}
|
||||
)
|
||||
}
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
} // Close Canvas
|
||||
|
||||
// Legend Row
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
horizontalArrangement = Arrangement.Center,
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
// Planned Legend
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.size(width = 16.dp, height = 3.dp)
|
||||
.background(Color.LightGray)
|
||||
)
|
||||
Spacer(modifier = Modifier.width(6.dp))
|
||||
Text(text = "Planejado", fontSize = 12.sp, color = Color.Gray)
|
||||
Spacer(modifier = Modifier.height(16.dp))
|
||||
|
||||
Spacer(modifier = Modifier.width(24.dp))
|
||||
// Legend Row
|
||||
Row(
|
||||
modifier = Modifier.fillMaxWidth(),
|
||||
horizontalArrangement = Arrangement.Center,
|
||||
verticalAlignment = Alignment.CenterVertically
|
||||
) {
|
||||
// Planned Legend
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.size(width = 16.dp, height = 3.dp)
|
||||
.background(Color.LightGray)
|
||||
)
|
||||
Spacer(modifier = Modifier.width(6.dp))
|
||||
Text(text = "Planejado", fontSize = 12.sp, color = Color.Gray)
|
||||
|
||||
// Realized Legend
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.size(width = 16.dp, height = 3.dp)
|
||||
.background(Color(0xFF4CAF50))
|
||||
)
|
||||
Spacer(modifier = Modifier.width(6.dp))
|
||||
Text(text = "Realizado", fontSize = 12.sp, color = Color.Gray)
|
||||
}
|
||||
Spacer(modifier = Modifier.width(24.dp))
|
||||
|
||||
// Realized Legend
|
||||
Box(
|
||||
modifier = Modifier
|
||||
.size(width = 16.dp, height = 3.dp)
|
||||
.background(Color(0xFF4CAF50))
|
||||
)
|
||||
Spacer(modifier = Modifier.width(6.dp))
|
||||
Text(text = "Realizado", fontSize = 12.sp, color = Color.Gray)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user