add search fragment
This commit is contained in:
parent
72a46116b3
commit
4833b5c18c
8 changed files with 542 additions and 6 deletions
30
lib/bloc/scoop_search_state.dart
Normal file
30
lib/bloc/scoop_search_state.dart
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
part of 'scoop_search_bloc.dart';
|
||||
|
||||
abstract class ScoopSearchState extends Equatable {
|
||||
const ScoopSearchState();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
class ScoopSearchInitial extends ScoopSearchState {}
|
||||
|
||||
class ScoopSearchLoading extends ScoopSearchState {}
|
||||
|
||||
class ScoopSearchLoaded extends ScoopSearchState {
|
||||
final Map<String, List<ScoopAppModel>> apps;
|
||||
|
||||
const ScoopSearchLoaded(this.apps);
|
||||
|
||||
@override
|
||||
List<Object> get props => [apps];
|
||||
}
|
||||
|
||||
class ScoopSearchError extends ScoopSearchState {
|
||||
final String message;
|
||||
|
||||
const ScoopSearchError(this.message);
|
||||
|
||||
@override
|
||||
List<Object> get props => [message];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue