mirror of
https://github.com/h7x4/Jisho-Study-Tool.git
synced 2024-12-21 13:37:29 +01:00
Add history bloc
This commit is contained in:
parent
b45a661cff
commit
3f81379097
18
lib/bloc/history/bloc/history_bloc.dart
Normal file
18
lib/bloc/history/bloc/history_bloc.dart
Normal file
@ -0,0 +1,18 @@
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:bloc/bloc.dart';
|
||||
import 'package:meta/meta.dart';
|
||||
|
||||
part 'history_event.dart';
|
||||
part 'history_state.dart';
|
||||
|
||||
class HistoryBloc extends Bloc<HistoryEvent, HistoryState> {
|
||||
HistoryBloc() : super(HistoryInitial());
|
||||
|
||||
@override
|
||||
Stream<HistoryState> mapEventToState(
|
||||
HistoryEvent event,
|
||||
) async* {
|
||||
// TODO: implement mapEventToState
|
||||
}
|
||||
}
|
4
lib/bloc/history/bloc/history_event.dart
Normal file
4
lib/bloc/history/bloc/history_event.dart
Normal file
@ -0,0 +1,4 @@
|
||||
part of 'history_bloc.dart';
|
||||
|
||||
@immutable
|
||||
abstract class HistoryEvent {}
|
6
lib/bloc/history/bloc/history_state.dart
Normal file
6
lib/bloc/history/bloc/history_state.dart
Normal file
@ -0,0 +1,6 @@
|
||||
part of 'history_bloc.dart';
|
||||
|
||||
@immutable
|
||||
abstract class HistoryState {}
|
||||
|
||||
class HistoryInitial extends HistoryState {}
|
Loading…
Reference in New Issue
Block a user