Remove leading/trailing space from search term

This commit is contained in:
Ming Ming 2022-09-08 15:22:48 +08:00
parent 9328244ed6
commit ce4877e416
2 changed files with 2 additions and 2 deletions

View file

@ -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 {

View file

@ -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,