diff --git a/lib/src/before_after.dart b/lib/src/before_after.dart index a58191e..7d29da9 100644 --- a/lib/src/before_after.dart +++ b/lib/src/before_after.dart @@ -414,9 +414,10 @@ class _BeforeAfterState extends State beforeAfterTheme.thumbWidth ?? defaults.thumbWidth!; - final effectiveThumbDecoration = widget.thumbDecoration ?? - beforeAfterTheme.thumbDecoration ?? - defaults.thumbDecoration!; + final effectiveThumbDecoration = (widget.thumbDecoration ?? + beforeAfterTheme.thumbDecoration ?? + defaults.thumbDecoration!) + .copyWith(color: widget.thumbColor); final isXAxis = widget.direction == SliderDirection.horizontal;