mirror of
https://github.com/immich-app/immich.git
synced 2025-01-06 03:46:47 +01:00
Rounds the edges of the progress bar
This commit is contained in:
parent
edba462faf
commit
fde8026253
1 changed files with 26 additions and 22 deletions
|
@ -15,7 +15,9 @@ class MemoryProgressIndicator extends StatelessWidget {
|
||||||
return LayoutBuilder(
|
return LayoutBuilder(
|
||||||
builder: (context, constraints) {
|
builder: (context, constraints) {
|
||||||
final tickWidth = constraints.maxWidth / ticks;
|
final tickWidth = constraints.maxWidth / ticks;
|
||||||
return Stack(
|
return ClipRRect(
|
||||||
|
borderRadius: const BorderRadius.all(Radius.circular(2.0)),
|
||||||
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
LinearProgressIndicator(
|
LinearProgressIndicator(
|
||||||
value: value,
|
value: value,
|
||||||
|
@ -32,7 +34,8 @@ class MemoryProgressIndicator extends StatelessWidget {
|
||||||
? null
|
? null
|
||||||
: Border(
|
: Border(
|
||||||
left: BorderSide(
|
left: BorderSide(
|
||||||
color: Theme.of(context).scaffoldBackgroundColor,
|
color:
|
||||||
|
Theme.of(context).scaffoldBackgroundColor,
|
||||||
width: 1,
|
width: 1,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -41,6 +44,7 @@ class MemoryProgressIndicator extends StatelessWidget {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue