import 'package:flutter_riverpod/flutter_riverpod.dart';

import '../model/expense_model.dart';
import '../model/income_model.dart';
import '../repository/get_expanse.dart';

ExpenseRepo expanseRepo = ExpenseRepo();
final expenseProvider =
    FutureProvider.autoDispose<List<ExpenseModel>>((ref) => expanseRepo.getAllExpense());

//---------income provider-----------------------------------
IncomeRepo incomeRepo = IncomeRepo();
final incomeProvider =
    FutureProvider.autoDispose<List<IncomeModel>>((ref) => incomeRepo.getAllIncome());
