This commit is contained in:
Alex
2024-04-27 14:28:51 -05:00
committed by shenlong-tanwen
parent 1d3493e00b
commit 4a7137c50c
3 changed files with 93 additions and 1 deletions
@@ -0,0 +1,15 @@
import 'package:bloc/bloc.dart';
part 'home_state.dart';
class HomeCubit extends Cubit<HomeState> {
HomeCubit() : super(HomeState(albumCount: 0));
void increaseAlbumCount() {
emit(state.copyWith(albumCount: state.albumCount + 1));
}
void decreaseAlbumCount() {
emit(state.copyWith(albumCount: state.albumCount - 1));
}
}