Skip to content

Commit

Permalink
fix: dev branch issues (#1600)
Browse files Browse the repository at this point in the history
  • Loading branch information
balakrishna-deriv authored May 21, 2024
1 parent 5a08463 commit 2ced988
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions chart_app/lib/src/painters/blink_tick_painter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ class BlinkingTickPainter<T extends BlinkingTickIndicator>
double? dotX;

if (series.previousObject == null) {
animatedValue = series.value;
animatedValue = series.quote;
if (series.epoch != null) {
dotX = epochToX(series.epoch!);
}
} else {
final BarrierObject previousBarrier = series.previousObject!;
animatedValue = series.value;
animatedValue = series.quote;

animatedValue = ui.lerpDouble(
previousBarrier.value,
series.value,
previousBarrier.quote,
series.quote,
animationInfo.currentTickPercent,
);

Expand Down
3 changes: 1 addition & 2 deletions chart_app/lib/src/series/time_interval_painter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TimeIntervalPainter<T extends TimeIntervalIndicator>
..strokeWidth = 1
..color = style.color;

double y = quoteToY(series.value as double);
double y = quoteToY(series.quote as double);

final double labelHalfHeight = style.labelHeight / 2;

Expand All @@ -50,7 +50,6 @@ class TimeIntervalPainter<T extends TimeIntervalIndicator>
//set Y axis below the marker
y = y + style.labelHeight;


// creating labelArea rectangle
final Rect labelArea = Rect.fromCenter(
center: Offset(
Expand Down

0 comments on commit 2ced988

Please sign in to comment.