Skip to content

Commit

Permalink
example: Don't use deprecated getter
Browse files Browse the repository at this point in the history
  • Loading branch information
cadivus committed Dec 13, 2024
1 parent a8a9be3 commit 690c9e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions example/lib/widgets/rgb_led_control_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ class _RgbLedControlWidgetState extends State<RgbLedControlWidget> {
ElevatedButton(
onPressed: () {
widget.rgbLed.writeLedColor(
r: _currentColor.red,
g: _currentColor.green,
b: _currentColor.blue,
r: (255 * _currentColor.r).round(),
g: (255 * _currentColor.g).round(),
b: (255 * _currentColor.b).round(),
);
},
child: const Text('Set'),
Expand Down

0 comments on commit 690c9e1

Please sign in to comment.