addUpperGoldLabels method Null safety
- List<
Widget> result, - Rect pos,
- {required double th,
- required double tw,
- required double bh,
- required double bw}
override
Implementation
@override
double addUpperGoldLabels(List<Widget> result, Rect pos,
{required double th,
required double tw,
required double bh,
required double bw}) {
double y = pos.top;
result.add(screen.box(
Rect.fromLTRB(pos.left + 2 * tw - 0.05, y + th - 0.14,
pos.left + 5 * tw + bw + 0.05, y + th + 0.11),
CustomPaint(
painter:
UpperLabel('SHOW', fTextStyle, height * (0.14 + 0.11) / bh))));
result.add(screen.box(
Rect.fromLTRB(pos.left + 2 * tw - 0.05, y + 2 * th - 0.155,
pos.left + 4 * tw + bw + 0.05, y + 2 * th + 0.065),
CustomPaint(
painter: UpperLabel('CLEAR', fTextSmallLabelStyle,
height * (0.065 + 0.155) / bh))));
result.add(screen.box(
Rect.fromLTRB(pos.left + 6 * tw - 0.05, y + 2 * th - 0.155,
pos.left + 8 * tw + bw + 0.05, y + 2 * th + 0.065),
CustomPaint(
painter: UpperLabel('SET COMPL', fTextSmallLabelStyle,
height * (0.065 + 0.155) / bh))));
return 0;
}