Skip to content

Commit

Permalink
Drop deprecated YaruSwitch.checkmarkColor property (#633) (#647)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jupi007 committed Mar 2, 2023
1 parent c8e27a0 commit 90a96ab
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions lib/src/widgets/yaru_switch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ class YaruSwitch extends StatefulWidget implements YaruTogglable<bool> {
required this.onChanged,
this.selectedColor,
this.thumbColor,
this.checkmarkColor,
this.focusNode,
this.autofocus = false,
});
Expand Down Expand Up @@ -91,14 +90,6 @@ class YaruSwitch extends StatefulWidget implements YaruTogglable<bool> {
/// Defaults to [ColorScheme.onPrimary].
final Color? thumbColor;

// TODO: Drop this in 2.2.0 release.
//
/// The color to use for the thumb when this switch is on.
///
/// Defaults to [ColorScheme.onPrimary].
@Deprecated('Use `thumbColor` instead. Will be removed in yaru_widgets 2.2.0')
final Color? checkmarkColor;

@override
bool get interactive => onChanged != null;

Expand Down Expand Up @@ -182,8 +173,6 @@ class _YaruSwitchState extends YaruTogglableState<YaruSwitch> {
final checkedBorderColor =
switchTheme.borderColor?.resolve(selectedState) ?? Colors.transparent;
final checkedThumbColor = widget.thumbColor ??
// ignore: deprecated_member_use_from_same_package
widget.checkmarkColor ??
switchTheme.thumbColor?.resolve(selectedState) ??
painter.checkmarkColor;

Expand Down

0 comments on commit 90a96ab

Please sign in to comment.