Skip to content

Commit ea2520d

Browse files
author
ben_banana555
committed
fix error
1 parent bf7ef0f commit ea2520d

File tree

2 files changed

+26
-21
lines changed

2 files changed

+26
-21
lines changed

lib/widgets/nt_widgets/multi-topic/limelight.dart

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import 'package:elastic_dashboard/widgets/nt_widgets/nt_widget.dart';
99

1010
class LimelightModel extends MultiTopicNTWidgetModel {
1111
@override
12-
String type = LimelightWidget.widgetType;
12+
String type = LimelightWiget.widgetType;
1313

14-
double get txTopicName => '$topic/tx';
15-
double get tyTopicName => '$topic/ty';
14+
String get txTopicName => '$topic/tx';
15+
String get tyTopicName => '$topic/ty';
1616
String get pipelineTopicName => '$topic/pipeline';
1717
String get sensor_grainTopicName => '$topic/sensor_grain';
1818
String get black_level_offsetTopicName => '$topic/black_level_offset';
@@ -24,6 +24,7 @@ class LimelightModel extends MultiTopicNTWidgetModel {
2424
late NT4Subscription sensor_grainSubscription;
2525
late NT4Subscription black_level_offsetSubscription;
2626
late NT4Subscription expusureSubscription;
27+
2728
@override
2829
List<NT4Subscription> get subscriptions => [
2930
txSubscription,
@@ -33,20 +34,24 @@ class LimelightModel extends MultiTopicNTWidgetModel {
3334
black_level_offsetSubscription,
3435
expusureSubscription,
3536
];
36-
Limelight({
37+
LimelightModel({
3738
required super.ntConnection,
3839
required super.preferences,
3940
required super.topic,
4041
super.dataType,
4142
super.period,
4243
});
44+
}
4345

4446

45-
46-
}
4747
class LimelightWiget extends NTWidget{
48-
final static String widgetType = "Limelight";
48+
static const String widgetType = "Limelight";
49+
50+
@override
51+
Widget build(BuildContext context) {
52+
// TODO: implement build
53+
throw UnimplementedError();
54+
}
4955

50-
const LimelightWidget();
5156

52-
}
57+
}

pubspec.lock

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -557,26 +557,26 @@ packages:
557557
dependency: transitive
558558
description:
559559
name: leak_tracker
560-
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0"
560+
sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"
561561
url: "https://pub.dev"
562562
source: hosted
563-
version: "10.0.9"
563+
version: "11.0.2"
564564
leak_tracker_flutter_testing:
565565
dependency: transitive
566566
description:
567567
name: leak_tracker_flutter_testing
568-
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573
568+
sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
569569
url: "https://pub.dev"
570570
source: hosted
571-
version: "3.0.9"
571+
version: "3.0.10"
572572
leak_tracker_testing:
573573
dependency: transitive
574574
description:
575575
name: leak_tracker_testing
576-
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3"
576+
sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
577577
url: "https://pub.dev"
578578
source: hosted
579-
version: "3.0.1"
579+
version: "3.0.2"
580580
lints:
581581
dependency: transitive
582582
description:
@@ -621,10 +621,10 @@ packages:
621621
dependency: transitive
622622
description:
623623
name: meta
624-
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c
624+
sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
625625
url: "https://pub.dev"
626626
source: hosted
627-
version: "1.16.0"
627+
version: "1.17.0"
628628
mime:
629629
dependency: transitive
630630
description:
@@ -1051,10 +1051,10 @@ packages:
10511051
dependency: transitive
10521052
description:
10531053
name: test_api
1054-
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd
1054+
sha256: ab2726c1a94d3176a45960b6234466ec367179b87dd74f1611adb1f3b5fb9d55
10551055
url: "https://pub.dev"
10561056
source: hosted
1057-
version: "0.7.4"
1057+
version: "0.7.7"
10581058
timing:
10591059
dependency: transitive
10601060
description:
@@ -1171,10 +1171,10 @@ packages:
11711171
dependency: "direct main"
11721172
description:
11731173
name: vector_math
1174-
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
1174+
sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
11751175
url: "https://pub.dev"
11761176
source: hosted
1177-
version: "2.1.4"
1177+
version: "2.2.0"
11781178
version:
11791179
dependency: "direct main"
11801180
description:

0 commit comments

Comments
 (0)