add search fragment

This commit is contained in:
Andrew 2022-09-13 11:13:17 +07:00
parent 72a46116b3
commit 4833b5c18c
8 changed files with 542 additions and 6 deletions

View 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];
}