Skip to content

Commit

Permalink
fix: [MDS-643] Fix progress bar clipping bug (#242)
Browse files Browse the repository at this point in the history
  • Loading branch information
GittHub-d committed Aug 11, 2023
1 parent 62b61ed commit b5d650b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion example/lib/src/storybook/stories/linear_progress.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@ class LinearProgressStory extends Story {
final showPinKnob = context.knobs.boolean(
label: "showPin",
description: "Show pin for LinearProgress",
initial: true,
);

final showPinShadowKnob = context.knobs.boolean(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ class MoonLinearProgressIndicatorPainter extends CustomPainter {
bottomRight: MoonSquircleRadius(cornerRadius: borderRadius.bottomRight.x),
);

// Clipping progressRect with containerRect
canvas.clipRRect(containerRect);

canvas.drawRRect(progressRect, paint);
}

Expand Down

0 comments on commit b5d650b

Please sign in to comment.