feat(ui): remove animation for graphs
it looked weird
This commit is contained in:
@@ -21,7 +21,6 @@ import androidx.compose.animation.core.AnimationSpec
|
|||||||
import androidx.compose.foundation.layout.height
|
import androidx.compose.foundation.layout.height
|
||||||
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
|
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
|
||||||
import androidx.compose.material3.MaterialTheme.colorScheme
|
import androidx.compose.material3.MaterialTheme.colorScheme
|
||||||
import androidx.compose.material3.MaterialTheme.motionScheme
|
|
||||||
import androidx.compose.material3.MaterialTheme.typography
|
import androidx.compose.material3.MaterialTheme.typography
|
||||||
import androidx.compose.material3.Surface
|
import androidx.compose.material3.Surface
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
@@ -90,7 +89,7 @@ fun TimeColumnChart(
|
|||||||
millisecondsToMinutes(value)
|
millisecondsToMinutes(value)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
animationSpec: AnimationSpec<Float>? = motionScheme.slowEffectsSpec()
|
animationSpec: AnimationSpec<Float>? = null
|
||||||
) {
|
) {
|
||||||
ProvideVicoTheme(rememberM3VicoTheme()) {
|
ProvideVicoTheme(rememberM3VicoTheme()) {
|
||||||
CartesianChartHost(
|
CartesianChartHost(
|
||||||
@@ -115,7 +114,7 @@ fun TimeColumnChart(
|
|||||||
valueFormatter = yValueFormatter
|
valueFormatter = yValueFormatter
|
||||||
),
|
),
|
||||||
bottomAxis = HorizontalAxis.rememberBottom(
|
bottomAxis = HorizontalAxis.rememberBottom(
|
||||||
rememberLineComponent(Fill.Transparent),
|
line = rememberLineComponent(Fill.Transparent),
|
||||||
tick = rememberLineComponent(Fill.Transparent),
|
tick = rememberLineComponent(Fill.Transparent),
|
||||||
guideline = rememberLineComponent(Fill.Transparent),
|
guideline = rememberLineComponent(Fill.Transparent),
|
||||||
valueFormatter = xValueFormatter
|
valueFormatter = xValueFormatter
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ import androidx.compose.animation.core.AnimationSpec
|
|||||||
import androidx.compose.foundation.layout.height
|
import androidx.compose.foundation.layout.height
|
||||||
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
|
import androidx.compose.material3.ExperimentalMaterial3ExpressiveApi
|
||||||
import androidx.compose.material3.MaterialTheme.colorScheme
|
import androidx.compose.material3.MaterialTheme.colorScheme
|
||||||
import androidx.compose.material3.MaterialTheme.motionScheme
|
|
||||||
import androidx.compose.material3.MaterialTheme.typography
|
import androidx.compose.material3.MaterialTheme.typography
|
||||||
import androidx.compose.material3.Surface
|
import androidx.compose.material3.Surface
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
@@ -94,7 +93,7 @@ fun TimeLineChart(
|
|||||||
millisecondsToMinutes(value)
|
millisecondsToMinutes(value)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
animationSpec: AnimationSpec<Float>? = motionScheme.slowEffectsSpec()
|
animationSpec: AnimationSpec<Float>? = null
|
||||||
) {
|
) {
|
||||||
ProvideVicoTheme(rememberM3VicoTheme()) {
|
ProvideVicoTheme(rememberM3VicoTheme()) {
|
||||||
CartesianChartHost(
|
CartesianChartHost(
|
||||||
@@ -129,7 +128,7 @@ fun TimeLineChart(
|
|||||||
valueFormatter = yValueFormatter
|
valueFormatter = yValueFormatter
|
||||||
),
|
),
|
||||||
bottomAxis = HorizontalAxis.rememberBottom(
|
bottomAxis = HorizontalAxis.rememberBottom(
|
||||||
rememberLineComponent(Fill.Transparent),
|
line = rememberLineComponent(Fill.Transparent),
|
||||||
tick = rememberLineComponent(Fill.Transparent),
|
tick = rememberLineComponent(Fill.Transparent),
|
||||||
guideline = rememberLineComponent(Fill.Transparent),
|
guideline = rememberLineComponent(Fill.Transparent),
|
||||||
valueFormatter = xValueFormatter
|
valueFormatter = xValueFormatter
|
||||||
|
|||||||
Reference in New Issue
Block a user