Skip to content

Commit e70890a

Browse files
rahul31124marcnause
authored andcommitted
bug fixes
1 parent da43abd commit e70890a

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

lib/view/instruments_screen.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ class _InstrumentsScreenState extends State<InstrumentsScreen> {
359359
crossAxisCount: 2,
360360
childAspectRatio: 2.5,
361361
),
362+
itemCount: _filteredIndices.length,
362363
itemBuilder: (context, index) {
363364
final int originalIndex = _filteredIndices[index];
364365
return GestureDetector(

lib/view/widgets/guide_widget.dart

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,11 @@ class _InstrumentOverviewDrawerState extends State<InstrumentOverviewDrawer>
140140
),
141141
),
142142
Flexible(
143-
child: LayoutBuilder(builder: (context, constraints) {
144-
return SingleChildScrollView(
143+
child: InteractiveViewer(
144+
boundaryMargin: EdgeInsets.zero,
145+
minScale: 1.0,
146+
maxScale: 4.0,
147+
child: SingleChildScrollView(
145148
padding: const EdgeInsets.all(16.0),
146149
child: Column(
147150
crossAxisAlignment: CrossAxisAlignment.start,
@@ -159,8 +162,8 @@ class _InstrumentOverviewDrawerState extends State<InstrumentOverviewDrawer>
159162
const SizedBox(height: 20.0),
160163
],
161164
),
162-
);
163-
}),
165+
),
166+
),
164167
),
165168
],
166169
),

lib/view/widgets/robotic_arm_summary.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ class _PlaybackSummaryDialogState extends State<PlaybackSummaryDialog> {
100100
return DropdownMenuItem(
101101
value: i,
102102
child: Text(
103-
'$appLocalizations.servo ${i + 1}',
103+
'${appLocalizations.servo} ${i + 1}',
104104
style: const TextStyle(fontSize: 10)),
105105
);
106106
}),
@@ -118,17 +118,17 @@ class _PlaybackSummaryDialogState extends State<PlaybackSummaryDialog> {
118118
icon: Icons.show_chart,
119119
label: appLocalizations.avgAngleLabel,
120120
value:
121-
'${avg.toStringAsFixed(1)}$appLocalizations.degreeSymbol'),
121+
'${avg.toStringAsFixed(1)}${appLocalizations.degreeSymbol}'),
122122
_StatCard(
123123
icon: Icons.arrow_upward,
124124
label: appLocalizations.maxAngleLabel,
125125
value:
126-
'${max.toStringAsFixed(1)}$appLocalizations.degreeSymbol'),
126+
'${max.toStringAsFixed(1)}${appLocalizations.degreeSymbol}'),
127127
_StatCard(
128128
icon: Icons.arrow_downward,
129129
label: appLocalizations.minAngleLabel,
130130
value:
131-
'${min.toStringAsFixed(1)}$appLocalizations.degreeSymbol'),
131+
'${min.toStringAsFixed(1)}${appLocalizations.degreeSymbol}'),
132132
],
133133
),
134134
const SizedBox(height: 8),
@@ -139,17 +139,17 @@ class _PlaybackSummaryDialogState extends State<PlaybackSummaryDialog> {
139139
icon: Icons.timeline,
140140
label: appLocalizations.avgDutyLabel,
141141
value:
142-
'${avgDuty.toStringAsFixed(1)}$appLocalizations.percentage'),
142+
'${avgDuty.toStringAsFixed(1)}${appLocalizations.percentage}'),
143143
_StatCard(
144144
icon: Icons.trending_up,
145145
label: appLocalizations.maxDutyLabel,
146146
value:
147-
'${maxDuty.toStringAsFixed(1)}$appLocalizations.percentage'),
147+
'${maxDuty.toStringAsFixed(1)}${appLocalizations.percentage}'),
148148
_StatCard(
149149
icon: Icons.low_priority,
150150
label: appLocalizations.minDutyLabel,
151151
value:
152-
'${minDuty.toStringAsFixed(1)}$appLocalizations.percentage'),
152+
'${minDuty.toStringAsFixed(1)}${appLocalizations.percentage}'),
153153
],
154154
),
155155
],

0 commit comments

Comments
 (0)