mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 08:46:18 +01:00
Remove leading/trailing space from search term
This commit is contained in:
parent
9328244ed6
commit
ce4877e416
2 changed files with 2 additions and 2 deletions
|
@ -62,7 +62,7 @@ abstract class SearchBlocState {
|
|||
}
|
||||
|
||||
class SearchBlocInit extends SearchBlocState {
|
||||
SearchBlocInit() : super(null, const SearchCriteria("", []), const []);
|
||||
SearchBlocInit() : super(null, SearchCriteria("", []), const []);
|
||||
}
|
||||
|
||||
class SearchBlocLoading extends SearchBlocState {
|
||||
|
|
|
@ -5,7 +5,7 @@ import 'package:nc_photos/entity/sqlite_table_extension.dart' as sql;
|
|||
import 'package:nc_photos/iterable_extension.dart';
|
||||
|
||||
class SearchCriteria {
|
||||
const SearchCriteria(this.input, this.filters);
|
||||
SearchCriteria(String input, this.filters) : input = input.trim();
|
||||
|
||||
SearchCriteria copyWith({
|
||||
String? input,
|
||||
|
|
Loading…
Reference in a new issue