You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
597 B
29 lines
597 B
import 'package:flutter/material.dart';
|
|
|
|
class PracticeProgressIndicator extends StatelessWidget {
|
|
final double percentage;
|
|
|
|
const PracticeProgressIndicator({
|
|
super.key,
|
|
required this.percentage,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Column(
|
|
children: [
|
|
CircularProgressIndicator(
|
|
value: percentage / 100,
|
|
strokeWidth: 8,
|
|
),
|
|
const SizedBox(height: 8),
|
|
Text(
|
|
'${percentage.toStringAsFixed(1)}%',
|
|
style: Theme.of(context).textTheme.titleLarge,
|
|
),
|
|
],
|
|
);
|
|
}
|
|
}
|
|
|