fixes before build
This commit is contained in:
@@ -28,9 +28,7 @@ class PriceChart extends StatelessWidget {
|
||||
height: 160,
|
||||
child: CustomPaint(
|
||||
painter: _PriceChartPainter(
|
||||
prices: [
|
||||
for (final purchase in points) purchase.unitOrLinePrice,
|
||||
],
|
||||
prices: [for (final purchase in points) purchase.unitOrLinePrice],
|
||||
lineColor: theme.colorScheme.primary,
|
||||
fillColor: theme.colorScheme.primary.withValues(alpha: 0.12),
|
||||
gridColor: theme.colorScheme.outlineVariant,
|
||||
@@ -87,7 +85,12 @@ class _PriceChartPainter extends CustomPainter {
|
||||
const right = 8.0;
|
||||
const top = 12.0;
|
||||
const bottom = 8.0;
|
||||
final chart = Rect.fromLTRB(left, top, size.width - right, size.height - bottom);
|
||||
final chart = Rect.fromLTRB(
|
||||
left,
|
||||
top,
|
||||
size.width - right,
|
||||
size.height - bottom,
|
||||
);
|
||||
|
||||
final gridPaint = Paint()
|
||||
..color = gridColor
|
||||
|
||||
Reference in New Issue
Block a user