Skip to content

Commit

Permalink
Merge pull request #1140 from flutter-form-builder-ecosystem/remove-t…
Browse files Browse the repository at this point in the history
…oggleableActiveColor

feat: Remove deprecated property
  • Loading branch information
deandreamatias authored Nov 5, 2022
2 parents 58c1f46 + e7d92d0 commit 57cc1c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/src/fields/form_builder_switch.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ class FormBuilderSwitch extends FormBuilderField<bool> {

/// The color to use when this switch is on.
///
/// Defaults to [ThemeData.toggleableActiveColor].
/// Defaults to [ColorScheme.secondary].
final Color? activeColor;

/// The color to use on the track when this switch is on.
///
/// Defaults to [ThemeData.toggleableActiveColor] with the opacity set at 50%.
/// Defaults to [ColorScheme.secondary] with the opacity set at 50%.
///
/// Ignored if this switch is created with [Switch.adaptive].
final Color? activeTrackColor;
Expand Down
2 changes: 1 addition & 1 deletion lib/src/widgets/grouped_checkbox.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class GroupedCheckbox<T> extends StatelessWidget {

/// The color to use when this checkbox is checked.
///
/// Defaults to [ThemeData.toggleableActiveColor].
/// Defaults to [ColorScheme.secondary].
final Color? activeColor;

/// The color to use for the check icon when this checkbox is checked.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/widgets/grouped_radio.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class GroupedRadio<T> extends StatefulWidget {

/// The color to use when this checkbox is checked.
///
/// Defaults to [ThemeData.toggleableActiveColor].
/// Defaults to [ColorScheme.secondary].
final Color? activeColor;

/// Configures the minimum size of the tap target.
Expand Down

0 comments on commit 57cc1c8

Please sign in to comment.