-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: search filter enhancement (#69)
* feat: 문제 검색 도움말 * feat: 문제 검색 필터 살짝 낮춤 * fix: desc 오타 수정 * feat: showSolvedProblem으로 수정 * feat: 문제 검색시 태그 on/off * feat: 내가 푼 문제 보지 않기 * feat: 랜덤 문제 검색 * v2.2.0+79
- Loading branch information
Showing
9 changed files
with
448 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,52 @@ | ||
part of 'search_bloc.dart'; | ||
|
||
@immutable | ||
abstract class SearchEvent extends Equatable {} | ||
abstract class SearchEvent {} | ||
|
||
class SearchInit extends SearchEvent {} | ||
|
||
class SearchTextFieldOnChanged extends SearchEvent { | ||
final String text; | ||
|
||
SearchTextFieldOnChanged({required this.text}); | ||
|
||
@override | ||
List<Object?> get props => [text]; | ||
} | ||
|
||
class SearchTextFieldOnSummited extends SearchEvent { | ||
final String text; | ||
|
||
SearchTextFieldOnSummited({required this.text}); | ||
|
||
@override | ||
List<Object?> get props => [text]; | ||
} | ||
|
||
class SearchSegmentedControlTapped extends SearchEvent { | ||
final int index; | ||
|
||
SearchSegmentedControlTapped({required this.index}); | ||
|
||
@override | ||
List<Object?> get props => [index]; | ||
} | ||
|
||
class SearchFilterSortMethodSelected extends SearchEvent { | ||
final SearchSortMethod sort; | ||
|
||
SearchFilterSortMethodSelected({required this.sort}); | ||
|
||
@override | ||
List<Object?> get props => [sort]; | ||
} | ||
|
||
class SearchFilterDirectionSelected extends SearchEvent { | ||
final SearchDirection direction; | ||
|
||
SearchFilterDirectionSelected({required this.direction}); | ||
} | ||
|
||
class SearchFilterShowSolvedProblemChanged extends SearchEvent { | ||
final bool isOn; | ||
|
||
@override | ||
List<Object?> get props => [direction]; | ||
SearchFilterShowSolvedProblemChanged({required this.isOn}); | ||
} | ||
|
||
class SearchFilterIsNotShowSolvedProblemChanged extends SearchEvent { | ||
class SearchFilterShowProblemTagChanged extends SearchEvent { | ||
final bool isOn; | ||
|
||
SearchFilterIsNotShowSolvedProblemChanged({required this.isOn}); | ||
SearchFilterShowProblemTagChanged({required this.isOn}); | ||
} | ||
|
||
@override | ||
List<Object?> get props => [isOn]; | ||
class SearchFilterRandomRerolled extends SearchEvent { | ||
SearchFilterRandomRerolled(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.