Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ class _BuildJointControlRow extends StatefulWidget {
}

class _BuildJointControlRowState extends State<_BuildJointControlRow> {
static const double _minPosition = 0.0;
static const double _maxPosition = 180.0;
static const double _minPosition = -359.0;
static const double _maxPosition = 359.0;

List<double> _jointValues = [];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you have two copies of _jointValues, one in the RowState and another in the parent widget. It might be better just to have one list you are manipulating for clarity. Even if you do need the original list, you could only pass the values you need into the row like so: startJointValues: _jointValues[index]

List<TextEditingController> _textControllers = [];
Expand Down