- 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)
13 lines
409 B
Dart
13 lines
409 B
Dart
import 'package:habo/habits/habit.dart';
|
|
|
|
abstract class HabitRepository {
|
|
Future<List<Habit>> getAllHabits();
|
|
Future<int> createHabit(Habit habit);
|
|
Future<void> updateHabit(Habit habit);
|
|
Future<void> deleteHabit(int id);
|
|
Future<Habit?> findHabitById(int id);
|
|
Future<void> updateHabitsOrder(List<Habit> habits);
|
|
Future<void> deleteAllHabits();
|
|
Future<void> insertHabits(List<Habit> habits);
|
|
}
|