Files
TravelMate/lib/blocs/group/group_state.dart
Dayron 4edbd1cf34 feat: Add User and UserBalance models with serialization methods
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
2025-10-21 16:02:58 +02:00

51 lines
958 B
Dart

import 'package:equatable/equatable.dart';
import '../../models/group.dart';
abstract class GroupState extends Equatable {
const GroupState();
@override
List<Object?> get props => [];
}
// État initial
class GroupInitial extends GroupState {}
// Chargement
class GroupLoading extends GroupState {}
// Groupes chargés
class GroupsLoaded extends GroupState {
final List<Group> groups;
const GroupsLoaded(this.groups);
@override
List<Object?> get props => [groups];
}
class GroupLoaded extends GroupState {
final List<Group> groups;
const GroupLoaded(this.groups);
}
// Succès d'une opération
class GroupOperationSuccess extends GroupState {
final String message;
const GroupOperationSuccess(this.message);
@override
List<Object?> get props => [message];
}
// Erreur
class GroupError extends GroupState {
final String message;
const GroupError(this.message);
@override
List<Object?> get props => [message];
}