feat: Implement BalanceRepository for group balance calculations feat: Create ExpenseRepository for managing expenses feat: Add services for handling expenses and storage operations fix: Update import paths for models in repositories and services refactor: Rename CountContent to AccountContent in HomePage chore: Add StorageService for image upload and management
40 lines
804 B
Dart
40 lines
804 B
Dart
import 'package:equatable/equatable.dart';
|
|
import '../../models/account.dart';
|
|
|
|
abstract class AccountState extends Equatable {
|
|
const AccountState();
|
|
|
|
@override
|
|
List<Object?> get props => [];
|
|
}
|
|
|
|
class AccountInitial extends AccountState {}
|
|
|
|
class AccountLoading extends AccountState {}
|
|
|
|
class AccountsLoaded extends AccountState {
|
|
final List<Account> accounts;
|
|
|
|
const AccountsLoaded(this.accounts);
|
|
|
|
@override
|
|
List<Object?> get props => [accounts];
|
|
}
|
|
|
|
class AccountOperationSuccess extends AccountState {
|
|
final String message;
|
|
|
|
const AccountOperationSuccess(this.message);
|
|
|
|
@override
|
|
List<Object?> get props => [message];
|
|
}
|
|
|
|
class AccountError extends AccountState {
|
|
final String message;
|
|
|
|
const AccountError(this.message);
|
|
|
|
@override
|
|
List<Object?> get props => [message];
|
|
} |