first commit

This commit is contained in:
2026-02-07 15:57:09 +07:00
commit 157096f164
1153 changed files with 415766 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../../../Provider/transactions_provider.dart';
import '../Model/income_modle.dart';
import '../Repo/income_repo.dart';
final incomeRepoProvider = Provider<IncomeRepo>(
(ref) => IncomeRepo(),
);
final filteredIncomeProvider = FutureProvider.family.autoDispose<List<Income>, FilterModel>(
(ref, filter) {
final repo = ref.read(incomeRepoProvider);
return repo.fetchAllIncome(
type: filter.duration,
fromDate: filter.fromDate,
toDate: filter.toDate,
);
},
);

View File

@@ -0,0 +1,7 @@
import 'package:flutter_riverpod/flutter_riverpod.dart';
import '../Model/income_category.dart';
import '../Repo/income_category_repo.dart';
IncomeCategoryRepo incomeCategoryRepo = IncomeCategoryRepo();
final incomeCategoryProvider = FutureProvider.autoDispose<List<IncomeCategory>>((ref) => incomeCategoryRepo.fetchAllIncomeCategory());