feat: Enhance group and trip management with group creation and account linking
NOT FUNCTIONNAL
This commit is contained in:
@@ -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'));
|
||||
|
||||
Reference in New Issue
Block a user