chore: update CharacterTheme with animation path

pull/223/head
arturplaczek 3 years ago
parent 2c98901b6f
commit ccec15fa94

@ -25,4 +25,7 @@ class AndroidTheme extends CharacterTheme {
@override
AssetGenImage get leaderboardIcon => Assets.images.android.leaderboardIcon;
@override
String get animationPath => Assets.images.android.animation.keyName;
}

@ -30,6 +30,9 @@ abstract class CharacterTheme extends Equatable {
/// Icon asset for the leaderboard.
AssetGenImage get leaderboardIcon;
/// Path to the asset for the animation.
String get animationPath;
@override
List<Object?> get props => [
name,

@ -25,4 +25,7 @@ class DashTheme extends CharacterTheme {
@override
AssetGenImage get leaderboardIcon => Assets.images.dash.leaderboardIcon;
@override
String get animationPath => Assets.images.dash.animation.keyName;
}

@ -25,4 +25,7 @@ class DinoTheme extends CharacterTheme {
@override
AssetGenImage get leaderboardIcon => Assets.images.dino.leaderboardIcon;
@override
String get animationPath => Assets.images.dino.animation.keyName;
}

@ -25,4 +25,7 @@ class SparkyTheme extends CharacterTheme {
@override
AssetGenImage get leaderboardIcon => Assets.images.sparky.leaderboardIcon;
@override
String get animationPath => Assets.images.sparky.animation.keyName;
}

@ -6,7 +6,10 @@ import 'package:pinball_theme/pinball_theme.dart';
void main() {
group('AndroidTheme', () {
test('can be instantiated', () {
expect(AndroidTheme(), isNotNull);
final androidTheme = AndroidTheme();
expect(androidTheme, isNotNull);
expect(androidTheme.animationPath, isNotNull);
});
test('supports value equality', () {

@ -6,7 +6,10 @@ import 'package:pinball_theme/pinball_theme.dart';
void main() {
group('DashTheme', () {
test('can be instantiated', () {
expect(DashTheme(), isNotNull);
final dashTheme = DashTheme();
expect(dashTheme, isNotNull);
expect(dashTheme.animationPath, isNotNull);
});
test('supports value equality', () {

@ -6,7 +6,10 @@ import 'package:pinball_theme/pinball_theme.dart';
void main() {
group('DinoTheme', () {
test('can be instantiated', () {
expect(DinoTheme(), isNotNull);
final dinoTheme = DinoTheme();
expect(dinoTheme, isNotNull);
expect(dinoTheme.animationPath, isNotNull);
});
test('supports value equality', () {

@ -6,7 +6,10 @@ import 'package:pinball_theme/pinball_theme.dart';
void main() {
group('SparkyTheme', () {
test('can be instantiated', () {
expect(SparkyTheme(), isNotNull);
final sparkyTheme = SparkyTheme();
expect(sparkyTheme, isNotNull);
expect(sparkyTheme.animationPath, isNotNull);
});
test('supports value equality', () {

Loading…
Cancel
Save