flutter_settings_screens
flutter_settings_screens copied to clipboard
Fix: active color
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.