You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pinball/lib/character_themes/cubit/theme_cubit.dart

14 lines
349 B

import 'package:bloc/bloc.dart';
import 'package:equatable/equatable.dart';
import 'package:pinball/character_themes/character_themes.dart';
part 'theme_state.dart';
class ThemeCubit extends Cubit<ThemeState> {
ThemeCubit() : super(const ThemeState(DashTheme()));
void themeSelected(CharacterTheme theme) {
emit(ThemeState(theme));
}
}