lading chat

This commit is contained in:
Felipe
2024-04-23 14:51:15 -05:00
parent 34135b25e1
commit 76be1f1f1a
6 changed files with 366 additions and 195 deletions
@@ -73,14 +73,14 @@ class _ProfessionalListScreenState extends State<ProfessionalListScreen> {
if (state is ProfessionalListSuccess) {
final List<UserProfessional> filteredUsers;
// TODO : encaso de filtro dañado
// TODO: encaso de filtro dañado
// if (_searchController.text.isNotEmpty) {
filteredUsers = state.users
.where((element) => removeDiacritics(element.myUser.name!)
.toLowerCase()
.contains(removeDiacritics(_searchController.text.toLowerCase())))
// .where((user) =>
// user.myUser.id != FirebaseAuth.instance.currentUser!.uid)
.where((user) =>
user.myUser.id != FirebaseAuth.instance.currentUser!.uid)
.toList();
// } else {
// filteredUsers = state.users