Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
cadivus committed Nov 17, 2024
1 parent 27f8e51 commit 58f4074
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,11 @@ class _SensorControlCardState extends State<SensorControlCard> {
child: SensorControlRow("Microphone 2"),
),
Padding(
padding: EdgeInsets.fromLTRB(16, 0, 16, 0),
child: Divider(
color: Color.fromRGBO(168, 168, 172, 1.0),
)),
padding: EdgeInsets.fromLTRB(16, 0, 16, 0),
child: Divider(
color: Color.fromRGBO(168, 168, 172, 1.0),
),
),
ChangeNotifierProvider<SensorSettings>.value(
value: OpenEarableSettingsV2().imuSettings,
child: SensorControlRow("9-Axis IMU"),
Expand All @@ -171,34 +172,35 @@ class _SensorControlCardState extends State<SensorControlCard> {
child: SensorControlRow("Pressure,\nTemp. (Ambient)"),
),
Padding(
padding: EdgeInsets.all(16),
child: Row(
children: [
Expanded(
child: SizedBox(
height: 37,
child: ElevatedButton(
onPressed: Provider.of<BluetoothController>(context)
.connected
? _writeSensorConfigs
: null,
style: ElevatedButton.styleFrom(
backgroundColor:
Provider.of<BluetoothController>(context)
.connected
? Theme.of(context).colorScheme.secondary
: Colors.grey,
foregroundColor: Colors.black,
enableFeedback:
Provider.of<BluetoothController>(context)
.connected,
),
child: Text("Set Configuration"),
padding: EdgeInsets.all(16),
child: Row(
children: [
Expanded(
child: SizedBox(
height: 37,
child: ElevatedButton(
onPressed:
Provider.of<BluetoothController>(context).connected
? _writeSensorConfigs
: null,
style: ElevatedButton.styleFrom(
backgroundColor:
Provider.of<BluetoothController>(context)
.connected
? Theme.of(context).colorScheme.secondary
: Colors.grey,
foregroundColor: Colors.black,
enableFeedback:
Provider.of<BluetoothController>(context)
.connected,
),
child: Text("Set Configuration"),
),
),
],
)),
),
],
),
),
],
),
),
Expand Down
3 changes: 2 additions & 1 deletion open_earable/lib/sensor_data_tab/sensor_chart.dart
Original file line number Diff line number Diff line change
Expand Up @@ -476,7 +476,8 @@ class _EarableDataChartState extends State<EarableDataChart> {
? ChartJsWidget(
chartType: 'line',
seriesList: webSeriesList,
title: widget.sensorName)
title: widget.sensorName,
)
: charts.LineChart(
seriesList,
animate: false,
Expand Down
2 changes: 2 additions & 0 deletions open_earable/lib/sensor_data_tab/sensor_html_chart.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import 'dart:convert';
// ignore: avoid_web_libraries_in_flutter
import 'dart:js' as js;
// ignore: avoid_web_libraries_in_flutter
import 'dart:html' as html;
import 'dart:ui_web';
import 'package:flutter/foundation.dart';
Expand Down

0 comments on commit 58f4074

Please sign in to comment.