1
0
Fork 0
mirror of https://github.com/immich-app/immich.git synced 2025-01-01 08:31:59 +00:00

Rounds the edges of the progress bar

This commit is contained in:
Marty Fuhry 2024-02-02 09:32:59 -05:00
parent edba462faf
commit fde8026253
No known key found for this signature in database
GPG key ID: E2AB6392D894D900

View file

@ -15,32 +15,36 @@ class MemoryProgressIndicator extends StatelessWidget {
return LayoutBuilder(
builder: (context, constraints) {
final tickWidth = constraints.maxWidth / ticks;
return Stack(
children: [
LinearProgressIndicator(
value: value,
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: List.generate(
ticks,
(i) => Container(
width: tickWidth,
height: 4,
decoration: BoxDecoration(
border: i == 0
? null
: Border(
left: BorderSide(
color: Theme.of(context).scaffoldBackgroundColor,
width: 1,
return ClipRRect(
borderRadius: const BorderRadius.all(Radius.circular(2.0)),
child: Stack(
children: [
LinearProgressIndicator(
value: value,
),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: List.generate(
ticks,
(i) => Container(
width: tickWidth,
height: 4,
decoration: BoxDecoration(
border: i == 0
? null
: Border(
left: BorderSide(
color:
Theme.of(context).scaffoldBackgroundColor,
width: 1,
),
),
),
),
),
),
),
),
],
],
),
);
},
);