feat(ui): remove animation for graphs

it looked weird
This commit is contained in:
Nishant Mishra
2025-11-19 19:32:13 +05:30
parent 55d945c14f
commit 8ff166da57
2 changed files with 4 additions and 6 deletions

View File

@@ -21,7 +21,6 @@ import androidx.compose.animation.core.AnimationSpec
import androidx.compose.foundation.layout.height
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
import androidx.compose.material3.MaterialTheme.colorScheme
import androidx.compose.material3.MaterialTheme.motionScheme
import androidx.compose.material3.MaterialTheme.typography
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
@@ -90,7 +89,7 @@ fun TimeColumnChart(
millisecondsToMinutes(value)
}
},
animationSpec: AnimationSpec<Float>? = motionScheme.slowEffectsSpec()
animationSpec: AnimationSpec<Float>? = null
) {
ProvideVicoTheme(rememberM3VicoTheme()) {
CartesianChartHost(
@@ -115,7 +114,7 @@ fun TimeColumnChart(
valueFormatter = yValueFormatter
),
bottomAxis = HorizontalAxis.rememberBottom(
rememberLineComponent(Fill.Transparent),
line = rememberLineComponent(Fill.Transparent),
tick = rememberLineComponent(Fill.Transparent),
guideline = rememberLineComponent(Fill.Transparent),
valueFormatter = xValueFormatter

View File

@@ -21,7 +21,6 @@ import androidx.compose.animation.core.AnimationSpec
import androidx.compose.foundation.layout.height
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
import androidx.compose.material3.MaterialTheme.colorScheme
import androidx.compose.material3.MaterialTheme.motionScheme
import androidx.compose.material3.MaterialTheme.typography
import androidx.compose.material3.Surface
import androidx.compose.runtime.Composable
@@ -94,7 +93,7 @@ fun TimeLineChart(
millisecondsToMinutes(value)
}
},
animationSpec: AnimationSpec<Float>? = motionScheme.slowEffectsSpec()
animationSpec: AnimationSpec<Float>? = null
) {
ProvideVicoTheme(rememberM3VicoTheme()) {
CartesianChartHost(
@@ -129,7 +128,7 @@ fun TimeLineChart(
valueFormatter = yValueFormatter
),
bottomAxis = HorizontalAxis.rememberBottom(
rememberLineComponent(Fill.Transparent),
line = rememberLineComponent(Fill.Transparent),
tick = rememberLineComponent(Fill.Transparent),
guideline = rememberLineComponent(Fill.Transparent),
valueFormatter = xValueFormatter