Skip to content

Commit

Permalink
Minor update to the char / weapon bloc
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Jan 18, 2021
1 parent 330ba74 commit ecc88a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/bloc/characters/characters_bloc.dart
Expand Up @@ -29,7 +29,7 @@ class CharactersBloc extends Bloc<CharactersEvent, CharactersState> {
CharactersEvent event,
) async* {
final s = event.map(
init: (_) => _buildInitialState(),
init: (_) => _buildInitialState(elementTypes: ElementType.values, weaponTypes: WeaponType.values),
characterFilterTypeChanged: (e) => currentState.copyWith.call(tempCharacterFilterType: e.characterFilterType),
elementTypeChanged: (e) {
var types = <ElementType>[];
Expand Down
2 changes: 1 addition & 1 deletion lib/bloc/weapons/weapons_bloc.dart
Expand Up @@ -28,7 +28,7 @@ class WeaponsBloc extends Bloc<WeaponsEvent, WeaponsState> {
WeaponsEvent event,
) async* {
final s = event.map(
init: (_) => _buildInitialState(),
init: (_) => _buildInitialState(weaponTypes: WeaponType.values),
weaponFilterTypeChanged: (e) => currentState.copyWith.call(tempWeaponFilterType: e.filterType),
rarityChanged: (e) => currentState.copyWith.call(tempRarity: e.rarity),
sortDirectionTypeChanged: (e) => currentState.copyWith.call(tempSortDirectionType: e.sortDirectionType),
Expand Down

0 comments on commit ecc88a8

Please sign in to comment.