mirror of
https://github.com/localsend/localsend.git
synced 2026-04-21 15:39:15 -04:00
22 lines
518 B
Dart
22 lines
518 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class CustomProgressBar extends StatelessWidget {
|
|
final double progress;
|
|
final double borderRadius;
|
|
final Color? color;
|
|
|
|
const CustomProgressBar({required this.progress, this.borderRadius = 10, this.color});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return ClipRRect(
|
|
borderRadius: BorderRadius.circular(borderRadius),
|
|
child: LinearProgressIndicator(
|
|
value: progress,
|
|
color: color,
|
|
minHeight: 10,
|
|
),
|
|
);
|
|
}
|
|
}
|