flutter_settings_screens icon indicating copy to clipboard operation
flutter_settings_screens copied to clipboard

Fix: active color

Open Juggler98 opened this issue 1 year ago • 0 comments

In Switch.adaptive for inactiveThumbColor: "If thumbColor returns a non-null color in the default state, it will be used instead of this color."

thumbColor was always non-null, so the switch has always the same color even when disabled and enabled - bad design. thumbColor need more complex setting, check the Switch.adaptive docs.

This change appeared in the last month update. I suggest to go back to the old solution and remove this and use just activeColor, which is optional, otherwise Theme.of(context).colorScheme.secondary would be used.

I also added for the user optional properties: active/inactive color and showDivider in Slider. All these changes are not breaking.

Juggler98 avatar May 31 '24 18:05 Juggler98