Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvedder committed Jul 4, 2023
1 parent 9c60f9f commit 5acfa04
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,7 @@ class StudyDesignInfoFormView extends StudyDesignPageWidget {
children: List<Widget>.generate(formViewModel.tagsControl.value!.length, (index) {
return StudyTagBadge(
tag: formViewModel.tagsControl.value!.elementAt(index),
onRemove: () async =>
studyTags.delegate.delete(
formViewModel.tagsControl.value![index]
),
onRemove: () async => studyTags.delegate.delete(formViewModel.tagsControl.value![index]),
);
}),
),
Expand All @@ -120,9 +117,7 @@ class StudyDesignInfoFormView extends StudyDesignPageWidget {
items: allTags.toList(),
selectedOptions: selectedTags,
onConfirm: (selectedItems) async =>
studyTags.updateStudyTags(
selectedItems.map((e) => e.value).toList()
),
studyTags.updateStudyTags(selectedItems.map((e) => e.value).toList()),
);
} else {
return const SizedBox();
Expand Down
13 changes: 5 additions & 8 deletions designer_v2/lib/repositories/user_repository.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ abstract class IUserRepository {
}

class UserRepository implements IUserRepository {
UserRepository({
required this.authRepository,
required this.apiClient,
required this.ref
}); //: super(UserRepositoryDelegate(apiClient: apiClient));
UserRepository(
{required this.authRepository,
required this.apiClient,
required this.ref}); //: super(UserRepositoryDelegate(apiClient: apiClient));

final StudyUApi apiClient;
final IAuthRepository authRepository;
Expand Down Expand Up @@ -61,11 +60,9 @@ class UserRepository implements IUserRepository {
);
return saveOperation.execute().then((_) => model);*/

}
}


/*class UserRepositoryDelegate extends IModelRepositoryDelegate<StudyUUser> {
UserRepositoryDelegate({ required this.apiClient }) {
throw UnimplementedError();
Expand Down Expand Up @@ -139,4 +136,4 @@ final userRepositoryProvider = Provider.autoDispose((ref) {
final apiClient = ref.watch(apiClientProvider);
final authRepository = ref.watch(authRepositoryProvider);
return UserRepository(apiClient: apiClient, ref: ref, authRepository: authRepository);
});
});

0 comments on commit 5acfa04

Please sign in to comment.