feat: Enhance group and trip management with group creation and account linking

NOT FUNCTIONNAL
This commit is contained in:
Dayron
2025-10-22 12:23:26 +02:00
parent 4edbd1cf34
commit 905948379a
4 changed files with 178 additions and 70 deletions

View File

@@ -79,10 +79,11 @@ class GroupBloc extends Bloc<GroupEvent, GroupState> {
) async {
try {
emit(GroupLoading());
await _repository.createGroupWithMembers(
final groupId = await _repository.createGroupWithMembers(
group: event.group,
members: [],
);
emit(GroupCreated(groupId: groupId));
emit(const GroupOperationSuccess('Groupe créé avec succès'));
} catch (e) {
emit(GroupError('Erreur lors de la création: $e'));