Skip to content

Commit 8ff166d

Browse files
committed
feat(ui): remove animation for graphs
it looked weird
1 parent 55d945c commit 8ff166d

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

app/src/main/java/org/nsh07/pomodoro/ui/statsScreen/TimeColumnChart.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import androidx.compose.animation.core.AnimationSpec
2121
import androidx.compose.foundation.layout.height
2222
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
2323
import androidx.compose.material3.MaterialTheme.colorScheme
24-
import androidx.compose.material3.MaterialTheme.motionScheme
2524
import androidx.compose.material3.MaterialTheme.typography
2625
import androidx.compose.material3.Surface
2726
import androidx.compose.runtime.Composable
@@ -90,7 +89,7 @@ fun TimeColumnChart(
9089
millisecondsToMinutes(value)
9190
}
9291
},
93-
animationSpec: AnimationSpec<Float>? = motionScheme.slowEffectsSpec()
92+
animationSpec: AnimationSpec<Float>? = null
9493
) {
9594
ProvideVicoTheme(rememberM3VicoTheme()) {
9695
CartesianChartHost(
@@ -115,7 +114,7 @@ fun TimeColumnChart(
115114
valueFormatter = yValueFormatter
116115
),
117116
bottomAxis = HorizontalAxis.rememberBottom(
118-
rememberLineComponent(Fill.Transparent),
117+
line = rememberLineComponent(Fill.Transparent),
119118
tick = rememberLineComponent(Fill.Transparent),
120119
guideline = rememberLineComponent(Fill.Transparent),
121120
valueFormatter = xValueFormatter

app/src/main/java/org/nsh07/pomodoro/ui/statsScreen/TimeLineChart.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import androidx.compose.animation.core.AnimationSpec
2121
import androidx.compose.foundation.layout.height
2222
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
2323
import androidx.compose.material3.MaterialTheme.colorScheme
24-
import androidx.compose.material3.MaterialTheme.motionScheme
2524
import androidx.compose.material3.MaterialTheme.typography
2625
import androidx.compose.material3.Surface
2726
import androidx.compose.runtime.Composable
@@ -94,7 +93,7 @@ fun TimeLineChart(
9493
millisecondsToMinutes(value)
9594
}
9695
},
97-
animationSpec: AnimationSpec<Float>? = motionScheme.slowEffectsSpec()
96+
animationSpec: AnimationSpec<Float>? = null
9897
) {
9998
ProvideVicoTheme(rememberM3VicoTheme()) {
10099
CartesianChartHost(
@@ -129,7 +128,7 @@ fun TimeLineChart(
129128
valueFormatter = yValueFormatter
130129
),
131130
bottomAxis = HorizontalAxis.rememberBottom(
132-
rememberLineComponent(Fill.Transparent),
131+
line = rememberLineComponent(Fill.Transparent),
133132
tick = rememberLineComponent(Fill.Transparent),
134133
guideline = rememberLineComponent(Fill.Transparent),
135134
valueFormatter = xValueFormatter

0 commit comments

Comments
 (0)