Skip to content

Commit

Permalink
fix: thumbColor not working
Browse files Browse the repository at this point in the history
Signed-off-by: Sahil Kumar <xdsahil@gmail.com>
  • Loading branch information
xsahil03x committed Jul 9, 2024
1 parent 32f3b4a commit ab8b50c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/src/before_after.dart
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,10 @@ class _BeforeAfterState extends State<BeforeAfter>
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;

Expand Down

0 comments on commit ab8b50c

Please sign in to comment.