Skip to content

Commit 439d5e0

Browse files
committed
feat(content_management): add archived topics bloc
- Create ArchivedTopicsBloc, ArchivedTopicsEvent, and ArchivedTopicsState classes - Implement basic structure for handling archived topics using bloc pattern
1 parent 225c29f commit 439d5e0

File tree

3 files changed

+31
-0
lines changed

3 files changed

+31
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import 'package:bloc/bloc.dart';
2+
import 'package:equatable/equatable.dart';
3+
4+
part 'archived_topics_event.dart';
5+
part 'archived_topics_state.dart';
6+
7+
class ArchivedTopicsBloc extends Bloc<ArchivedTopicsEvent, ArchivedTopicsState> {
8+
ArchivedTopicsBloc() : super(ArchivedTopicsInitial()) {
9+
on<ArchivedTopicsEvent>((event, emit) {
10+
// TODO: implement event handler
11+
});
12+
}
13+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
part of 'archived_topics_bloc.dart';
2+
3+
sealed class ArchivedTopicsEvent extends Equatable {
4+
const ArchivedTopicsEvent();
5+
6+
@override
7+
List<Object> get props => [];
8+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
part of 'archived_topics_bloc.dart';
2+
3+
sealed class ArchivedTopicsState extends Equatable {
4+
const ArchivedTopicsState();
5+
6+
@override
7+
List<Object> get props => [];
8+
}
9+
10+
final class ArchivedTopicsInitial extends ArchivedTopicsState {}

0 commit comments

Comments
 (0)