Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Wolfteam committed Mar 16, 2021
1 parent 8b50d26 commit e75afdb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/application/artifact/artifact_bloc.dart
Expand Up @@ -31,7 +31,7 @@ class ArtifactBloc extends PopBloc<ArtifactEvent, ArtifactState> {
loadArtifact: (e) async {
final artifact = _genshinService.getArtifact(e.key);
final translation = _genshinService.getArtifactTranslation(e.key);
final charImgs = _genshinService.getCharactersImgUsingArtifact(e.key);
final charImgs = _genshinService.getCharacterImgsUsingArtifact(e.key);

var image = artifact.image.split('.png').first;
image = image.substring(0, image.length - 1);
Expand Down
2 changes: 1 addition & 1 deletion lib/application/weapon/weapon_bloc.dart
Expand Up @@ -52,7 +52,7 @@ class WeaponBloc extends PopBloc<WeaponEvent, WeaponState> {
}

WeaponState _buildInitialState(WeaponFileModel weapon, TranslationWeaponFile translation) {
final charImgs = _genshinService.getCharactersImgUsingWeapon(weapon.key);
final charImgs = _genshinService.getCharacterImgsUsingWeapon(weapon.key);
return WeaponState.loaded(
name: translation.name,
weaponType: weapon.type,
Expand Down
2 changes: 1 addition & 1 deletion lib/application/weapon/weapon_state.dart
Expand Up @@ -17,6 +17,6 @@ abstract class WeaponState with _$WeaponState {
@required List<WeaponFileRefinementModel> refinements,
@required List<String> charImages,
@required List<WeaponFileStatModel> stats,
@required List<WeaponCraftedFileModel> craftingMaterials,
@required List<ItemAscensionMaterialModel> craftingMaterials,
}) = _LoadedState;
}
2 changes: 1 addition & 1 deletion lib/domain/models/db/weapons/weapon_file_model.dart
Expand Up @@ -72,4 +72,4 @@ abstract class WeaponFileStatModel implements _$WeaponFileStatModel {
const WeaponFileStatModel._();

factory WeaponFileStatModel.fromJson(Map<String, dynamic> json) => _$WeaponFileStatModelFromJson(json);
}
}

0 comments on commit e75afdb

Please sign in to comment.