From 3f813790970e94d12e4e299574f4c6f5e35df161 Mon Sep 17 00:00:00 2001 From: h7x4abk3g Date: Mon, 13 Jul 2020 23:39:26 +0200 Subject: [PATCH] Add history bloc --- lib/bloc/history/bloc/history_bloc.dart | 18 ++++++++++++++++++ lib/bloc/history/bloc/history_event.dart | 4 ++++ lib/bloc/history/bloc/history_state.dart | 6 ++++++ 3 files changed, 28 insertions(+) create mode 100644 lib/bloc/history/bloc/history_bloc.dart create mode 100644 lib/bloc/history/bloc/history_event.dart create mode 100644 lib/bloc/history/bloc/history_state.dart diff --git a/lib/bloc/history/bloc/history_bloc.dart b/lib/bloc/history/bloc/history_bloc.dart new file mode 100644 index 0000000..9396c8c --- /dev/null +++ b/lib/bloc/history/bloc/history_bloc.dart @@ -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 { + HistoryBloc() : super(HistoryInitial()); + + @override + Stream mapEventToState( + HistoryEvent event, + ) async* { + // TODO: implement mapEventToState + } +} diff --git a/lib/bloc/history/bloc/history_event.dart b/lib/bloc/history/bloc/history_event.dart new file mode 100644 index 0000000..40ede67 --- /dev/null +++ b/lib/bloc/history/bloc/history_event.dart @@ -0,0 +1,4 @@ +part of 'history_bloc.dart'; + +@immutable +abstract class HistoryEvent {} diff --git a/lib/bloc/history/bloc/history_state.dart b/lib/bloc/history/bloc/history_state.dart new file mode 100644 index 0000000..57b69b2 --- /dev/null +++ b/lib/bloc/history/bloc/history_state.dart @@ -0,0 +1,6 @@ +part of 'history_bloc.dart'; + +@immutable +abstract class HistoryState {} + +class HistoryInitial extends HistoryState {}