Skip to content

fix(deps): migrate Vico charting API from 2.x to 3.x#809

Open
bmc08gt wants to merge 2 commits into
dependabot/gradle/code/cash/com.patrykandpatrick.vico-compose-3.0.2from
fix/vico-3-migration
Open

fix(deps): migrate Vico charting API from 2.x to 3.x#809
bmc08gt wants to merge 2 commits into
dependabot/gradle/code/cash/com.patrykandpatrick.vico-compose-3.0.2from
fix/vico-3-migration

Conversation

@bmc08gt
Copy link
Copy Markdown
Collaborator

@bmc08gt bmc08gt commented May 29, 2026

Summary

  • Adapts codebase to Vico 3.0 module restructuring (all vico.core imports → vico.compose)
  • Replaces removed/renamed APIs: fill()Fill(), ShaderProviderBrush, shapeComponentShapeComponent, LineStroke.continuousLineStroke.Continuous
  • Updates drawing code to use Compose Canvas.nativeCanvas for Android Paint operations
  • Fixes Fill.color type change (Int → Compose Color) and Insets property renames

Test plan

  • :apps:flipcash:features:tokens:compileDebugKotlin passes
  • Manual smoke test of market cap chart in tokens feature

Adapts to Vico 3.0 module restructuring:
- Update all vico.core imports to vico.compose package
- Replace fill() helper with Fill() constructor
- Replace LineStroke.continuous() with LineStroke.Continuous()
- Replace ShaderProvider with Compose Brush API
- Replace shapeComponent with ShapeComponent constructor
- Use Compose Canvas.nativeCanvas for Android Paint drawing
- Update Fill.color (now Compose Color) with .toArgb() for Paint
- Update Insets property names (startDp→start, topDp→top, etc.)
- Update Insets constructors from Float to Dp
- Use CircleShape instead of markerCorneredShape
- Replace rememberTextComponent color param with style TextStyle
- Replace model.extraStore with extraStore (MeasuringContext)
@bmc08gt bmc08gt requested a review from jeffyanta as a code owner May 29, 2026 22:49
@github-actions github-actions Bot added type: fix Bug fix area: tokens Token accounts, balances, token info labels May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tokens Token accounts, balances, token info type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant