Skip to content

Commit 7e0abdf

Browse files
committed
Add mild outline to timer circle
1 parent 66ac01d commit 7e0abdf

File tree

1 file changed

+41
-12
lines changed

1 file changed

+41
-12
lines changed

lib/timer/timer_progress_widgets.dart

Lines changed: 41 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -193,19 +193,48 @@ class _TimerCircularProgressIndicatorTile extends StatelessWidget {
193193
return Stack(
194194
alignment: Alignment.center,
195195
children: <Widget>[
196-
SizedBox(
197-
height: circleSize,
198-
width: circleSize,
199-
child: CircularProgressIndicator(
200-
strokeCap: StrokeCap.round,
201-
value: value,
202-
strokeWidth: strokeWidth,
203-
backgroundColor:
204-
Theme.of(context).colorScheme.onSurface.withValues(alpha: 0.25),
205-
valueColor: AlwaysStoppedAnimation<Color>(
206-
Theme.of(context).colorScheme.primary,
196+
Stack(
197+
alignment: Alignment.center,
198+
children: [
199+
Container(
200+
width: circleSize + 20,
201+
height: circleSize + 20,
202+
decoration: BoxDecoration(
203+
shape: BoxShape.circle,
204+
border: Border.all(
205+
color: lighten(Theme.of(context).colorScheme.surface, .3),
206+
width: 2,
207+
),
208+
),
207209
),
208-
),
210+
Container(
211+
width: circleSize - 20,
212+
height: circleSize - 20,
213+
decoration: BoxDecoration(
214+
shape: BoxShape.circle,
215+
border: Border.all(
216+
color: lighten(Theme.of(context).colorScheme.surface, .3),
217+
width: 2,
218+
),
219+
),
220+
),
221+
SizedBox(
222+
height: circleSize,
223+
width: circleSize,
224+
child: CircularProgressIndicator(
225+
strokeCap: StrokeCap.round,
226+
value: value,
227+
strokeWidth: strokeWidth,
228+
backgroundColor: Theme.of(context)
229+
.colorScheme
230+
.onSurface
231+
.withValues(alpha: 0.25),
232+
valueColor: AlwaysStoppedAnimation<Color>(
233+
Theme.of(context).colorScheme.primary,
234+
),
235+
),
236+
),
237+
],
209238
),
210239
// Circle button at the end of the progress
211240
if (value > 0)

0 commit comments

Comments
 (0)