Added central user credentials management
This commit is contained in:
@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
|
||||
|
||||
import '../../../api/marianumcloud/autocomplete/autocompleteApi.dart';
|
||||
import '../../../api/marianumcloud/autocomplete/autocompleteResponse.dart';
|
||||
import '../../../widget/errorView.dart';
|
||||
import '../../../widget/placeholderView.dart';
|
||||
|
||||
class JoinChat extends SearchDelegate<String> {
|
||||
CancelableOperation<AutocompleteResponse>? future;
|
||||
@ -47,7 +47,7 @@ class JoinChat extends SearchDelegate<String> {
|
||||
if(future != null) future!.cancel();
|
||||
|
||||
if(query.isEmpty) {
|
||||
return const ErrorView(
|
||||
return const PlaceholderView(
|
||||
text: "Suche nach benutzern",
|
||||
icon: Icons.person_search_outlined,
|
||||
);
|
||||
@ -81,7 +81,7 @@ class JoinChat extends SearchDelegate<String> {
|
||||
);
|
||||
} else if(snapshot.hasError) {
|
||||
log(snapshot.error.toString());
|
||||
return ErrorView(text: snapshot.error.toString());
|
||||
return PlaceholderView(icon: Icons.search_off, text: snapshot.error.toString());
|
||||
}
|
||||
|
||||
return const Center(child: CircularProgressIndicator());
|
||||
|
Reference in New Issue
Block a user