Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-08-10 12:31:33 +08:00
parent 06b433aa60
commit b788794f4b
2 changed files with 10 additions and 8 deletions

View File

@@ -44,6 +44,7 @@ class ActionItem extends StatelessWidget {
);
if (animation != null) {
final primary = theme.colorScheme.primary;
child = Stack(
clipBehavior: Clip.none,
alignment: Alignment.center,
@@ -53,7 +54,7 @@ class ActionItem extends StatelessWidget {
builder: (context, child) => CustomPaint(
size: const Size.square(28),
painter: _ArcPainter(
color: theme.colorScheme.primary,
color: primary,
sweepAngle: animation!.value,
),
),
@@ -117,6 +118,10 @@ class _ArcPainter extends CustomPainter {
@override
void paint(Canvas canvas, Size size) {
if (sweepAngle == 0) {
return;
}
final paint = Paint()
..color = color
..strokeWidth = 2