Skip to content

Commit

Permalink
fixed nothing
Browse files Browse the repository at this point in the history
  • Loading branch information
aidanahram committed Mar 29, 2024
1 parent db7bb4f commit 7ecdcb7
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/src/pages/electrical.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class _LineChart extends StatelessWidget {
final String bottomUnitName;
final String sideUnitName;
final String title;
final bool axis;
final double? minX;
final double? maxX;
final double minY;
Expand All @@ -22,7 +21,6 @@ class _LineChart extends StatelessWidget {
required this.bottomUnitName,
required this.sideUnitName,
required this.title,
required this.axis,
this.minX,
this.maxX,
this.minY = 0,
Expand Down Expand Up @@ -57,9 +55,7 @@ class _LineChart extends StatelessWidget {
),
leftTitles: AxisTitles(
axisNameWidget: Text(sideUnitName),
sideTitles: SideTitles(reservedSize: 25,
showTitles: axis,
),
sideTitles: const SideTitles(reservedSize: 25),
),
bottomTitles: AxisTitles(
axisNameWidget: Text(bottomUnitName),
Expand Down Expand Up @@ -102,14 +98,12 @@ class ElectricalPage extends ReactiveWidget<ElectricalModel> {
bottomUnitName: "Time",
sideUnitName: "V",
title: "Voltage Graph",
axis: model.axis,
),
_LineChart(
readings: model.currentReadings,
bottomUnitName: "Time",
sideUnitName: "A",
title: "Curent Graph",
axis: model.axis,
),
];

Expand Down

0 comments on commit 7ecdcb7

Please sign in to comment.