From b6086fec3cc305d5d3cb60eb4e86e021352a1106 Mon Sep 17 00:00:00 2001 From: Gold872 Date: Wed, 8 Nov 2023 00:20:19 -0500 Subject: [PATCH] Various fixes from "dart fix" --- lib/services/nt4.dart | 2 +- lib/widgets/draggable_containers/draggable_list_layout.dart | 2 -- lib/widgets/mjpeg.dart | 4 ++-- lib/widgets/nt4_widgets/multi-topic/combo_box_chooser.dart | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/lib/services/nt4.dart b/lib/services/nt4.dart index 1d80ae6b..eeea4ab9 100644 --- a/lib/services/nt4.dart +++ b/lib/services/nt4.dart @@ -1,4 +1,4 @@ -/// Written by Michael Jansen from Team 3015, Ranger Robotics +// Written by Michael Jansen from Team 3015, Ranger Robotics import 'dart:async'; import 'dart:convert'; diff --git a/lib/widgets/draggable_containers/draggable_list_layout.dart b/lib/widgets/draggable_containers/draggable_list_layout.dart index 24bacb8d..53571920 100644 --- a/lib/widgets/draggable_containers/draggable_list_layout.dart +++ b/lib/widgets/draggable_containers/draggable_list_layout.dart @@ -1,12 +1,10 @@ import 'dart:ui'; import 'package:collection/collection.dart'; -import 'package:elastic_dashboard/services/globals.dart'; import 'package:elastic_dashboard/widgets/dialog_widgets/dialog_text_input.dart'; import 'package:elastic_dashboard/widgets/draggable_containers/draggable_layout_container.dart'; import 'package:elastic_dashboard/widgets/draggable_containers/draggable_nt4_widget_container.dart'; import 'package:elastic_dashboard/widgets/draggable_containers/draggable_widget_container.dart'; -import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; class DraggableListLayout extends DraggableLayoutContainer { diff --git a/lib/widgets/mjpeg.dart b/lib/widgets/mjpeg.dart index 57635117..7cea387e 100644 --- a/lib/widgets/mjpeg.dart +++ b/lib/widgets/mjpeg.dart @@ -66,8 +66,8 @@ class Mjpeg extends HookWidget { this.loading, this.headers = const {}, this.preprocessor, - Key? key, - }) : super(key: key); + super.key, + }); Future cancelSubscription() async { await _manager.cancelSubscription(); diff --git a/lib/widgets/nt4_widgets/multi-topic/combo_box_chooser.dart b/lib/widgets/nt4_widgets/multi-topic/combo_box_chooser.dart index 121990ef..c3f776fd 100644 --- a/lib/widgets/nt4_widgets/multi-topic/combo_box_chooser.dart +++ b/lib/widgets/nt4_widgets/multi-topic/combo_box_chooser.dart @@ -255,7 +255,7 @@ class _StringChooserDropdown extends StatelessWidget { overflow: TextOverflow.ellipsis, ), ); - }).toList(), + }), ], dropdownStyleData: DropdownStyleData( decoration: BoxDecoration(