mirror of https://github.com/flutter/pinball.git
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.
14 lines
333 B
14 lines
333 B
import 'package:bloc/bloc.dart';
|
|
import 'package:equatable/equatable.dart';
|
|
import 'package:pinball_theme/pinball_theme.dart';
|
|
|
|
part 'theme_state.dart';
|
|
|
|
class ThemeCubit extends Cubit<ThemeState> {
|
|
ThemeCubit() : super(const ThemeState(DashTheme()));
|
|
|
|
void themeSelected(PinballTheme theme) {
|
|
emit(ThemeState(theme));
|
|
}
|
|
}
|