- Complete MVP with Repository Pattern, SQLite storage - Provider + ChangeNotifier state management - Navigation 2.0 with deep link support - Habit CRUD with twoDayRule, notifications, categories - Backup/Restore via JSON - Statistics with streak tracking - Material You theme support - Biometric lock support - Desktop widget support - 27 languages i18n structure - Comprehensive test suite (87/89 passing)
25 lines
484 B
Dart
25 lines
484 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class HabitProgressIndicator extends StatelessWidget {
|
|
final double progress;
|
|
final double size;
|
|
|
|
const HabitProgressIndicator({
|
|
super.key,
|
|
required this.progress,
|
|
this.size = 40,
|
|
});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return SizedBox(
|
|
width: size,
|
|
height: size,
|
|
child: CircularProgressIndicator(
|
|
value: progress.clamp(0.0, 1.0),
|
|
strokeWidth: 3,
|
|
),
|
|
);
|
|
}
|
|
}
|