chore: add png assets for character dialog (#181)

pull/186/head
arturplaczek 3 years ago committed by GitHub
parent 3ead0f76b0
commit 7bd0a60bc7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,71 +1,79 @@
{
"@@locale": "en",
"play": "Play",
"@play": {
"description": "Text displayed on the landing page play button"
},
"howToPlay": "How to Play",
"@howToPlay": {
"description": "Text displayed on the landing page how to play button"
},
"launchControls": "Launch Controls",
"@launchControls": {
"description": "Text displayed on the how to play dialog with the launch controls"
},
"flipperControls": "Flipper Controls",
"@flipperControls": {
"description": "Text displayed on the how to play dialog with the flipper controls"
},
"start": "Start",
"@start": {
"description": "Text displayed on the character selection page start button"
},
"characterSelectionTitle": "Choose your character!",
"@characterSelectionTitle": {
"description": "Title text displayed on the character selection page"
},
"gameOver": "Game Over",
"@gameOver": {
"description": "Text displayed on the ending dialog when game finishes"
},
"leaderboard": "Leaderboard",
"@leaderboard": {
"description": "Text displayed on the ending dialog leaderboard button"
},
"rank": "Rank",
"@rank": {
"description": "Text displayed on the leaderboard page header rank column"
},
"character": "Character",
"@character": {
"description": "Text displayed on the leaderboard page header character column"
},
"username": "Username",
"@username": {
"description": "Text displayed on the leaderboard page header userName column"
},
"score": "Score",
"@score": {
"description": "Text displayed on the leaderboard page header score column"
},
"retry": "Retry",
"@retry": {
"description": "Text displayed on the retry button leaders board page"
},
"addUser": "Add User",
"@addUser": {
"description": "Text displayed on the add user button at ending dialog"
},
"error": "Error",
"@error": {
"description": "Text displayed on the ending dialog when there is any error on sending user"
},
"yourScore": "Your score is",
"@yourScore": {
"description": "Text displayed on the ending dialog when game finishes to show the final score"
},
"enterInitials": "Enter your initials",
"@enterInitials": {
"description": "Text displayed on the ending dialog when game finishes to ask the user for his initials"
}
}
"@@locale": "en",
"play": "Play",
"@play": {
"description": "Text displayed on the landing page play button"
},
"howToPlay": "How to Play",
"@howToPlay": {
"description": "Text displayed on the landing page how to play button"
},
"launchControls": "Launch Controls",
"@launchControls": {
"description": "Text displayed on the how to play dialog with the launch controls"
},
"flipperControls": "Flipper Controls",
"@flipperControls": {
"description": "Text displayed on the how to play dialog with the flipper controls"
},
"start": "Start",
"@start": {
"description": "Text displayed on the character selection page start button"
},
"select": "Select",
"@select": {
"description": "Text displayed on the character selection page select button"
},
"characterSelectionTitle": "Choose your character!",
"@characterSelectionTitle": {
"description": "Title text displayed on the character selection page"
},
"characterSelectionSubtitle": "Theres no wrong answer",
"@characterSelectionSubtitle": {
"description": "Text displayed on the selecting character dialog at game beginning"
},
"gameOver": "Game Over",
"@gameOver": {
"description": "Text displayed on the ending dialog when game finishes"
},
"leaderboard": "Leaderboard",
"@leaderboard": {
"description": "Text displayed on the ending dialog leaderboard button"
},
"rank": "Rank",
"@rank": {
"description": "Text displayed on the leaderboard page header rank column"
},
"character": "Character",
"@character": {
"description": "Text displayed on the leaderboard page header character column"
},
"username": "Username",
"@username": {
"description": "Text displayed on the leaderboard page header userName column"
},
"score": "Score",
"@score": {
"description": "Text displayed on the leaderboard page header score column"
},
"retry": "Retry",
"@retry": {
"description": "Text displayed on the retry button leaders board page"
},
"addUser": "Add User",
"@addUser": {
"description": "Text displayed on the add user button at ending dialog"
},
"error": "Error",
"@error": {
"description": "Text displayed on the ending dialog when there is any error on sending user"
},
"yourScore": "Your score is",
"@yourScore": {
"description": "Text displayed on the ending dialog when game finishes to show the final score"
},
"enterInitials": "Enter your initials",
"@enterInitials": {
"description": "Text displayed on the ending dialog when game finishes to ask the user for his initials"
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 MiB

After

Width:  |  Height:  |  Size: 1.9 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 913 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 894 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 844 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 894 KiB

After

Width:  |  Height:  |  Size: 844 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 146 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

@ -3,15 +3,88 @@
/// FlutterGen
/// *****************************************************
// ignore_for_file: directives_ordering,unnecessary_import
import 'package:flutter/widgets.dart';
class $AssetsImagesGen {
const $AssetsImagesGen();
AssetGenImage get android => const AssetGenImage('assets/images/android.png');
AssetGenImage get dash => const AssetGenImage('assets/images/dash.png');
AssetGenImage get dino => const AssetGenImage('assets/images/dino.png');
AssetGenImage get sparky => const AssetGenImage('assets/images/sparky.png');
$AssetsImagesAndroidGen get android => const $AssetsImagesAndroidGen();
$AssetsImagesDashGen get dash => const $AssetsImagesDashGen();
$AssetsImagesDinoGen get dino => const $AssetsImagesDinoGen();
/// File path: assets/images/pinball_button.png
AssetGenImage get pinballButton =>
const AssetGenImage('assets/images/pinball_button.png');
/// File path: assets/images/select_character_background.png
AssetGenImage get selectCharacterBackground =>
const AssetGenImage('assets/images/select_character_background.png');
$AssetsImagesSparkyGen get sparky => const $AssetsImagesSparkyGen();
}
class $AssetsImagesAndroidGen {
const $AssetsImagesAndroidGen();
/// File path: assets/images/android/background.png
AssetGenImage get background =>
const AssetGenImage('assets/images/android/background.png');
/// File path: assets/images/android/character.png
AssetGenImage get character =>
const AssetGenImage('assets/images/android/character.png');
/// File path: assets/images/android/icon.png
AssetGenImage get icon =>
const AssetGenImage('assets/images/android/icon.png');
}
class $AssetsImagesDashGen {
const $AssetsImagesDashGen();
/// File path: assets/images/dash/background.png
AssetGenImage get background =>
const AssetGenImage('assets/images/dash/background.png');
/// File path: assets/images/dash/character.png
AssetGenImage get character =>
const AssetGenImage('assets/images/dash/character.png');
/// File path: assets/images/dash/icon.png
AssetGenImage get icon => const AssetGenImage('assets/images/dash/icon.png');
}
class $AssetsImagesDinoGen {
const $AssetsImagesDinoGen();
/// File path: assets/images/dino/background.png
AssetGenImage get background =>
const AssetGenImage('assets/images/dino/background.png');
/// File path: assets/images/dino/character.png
AssetGenImage get character =>
const AssetGenImage('assets/images/dino/character.png');
/// File path: assets/images/dino/icon.png
AssetGenImage get icon => const AssetGenImage('assets/images/dino/icon.png');
}
class $AssetsImagesSparkyGen {
const $AssetsImagesSparkyGen();
/// File path: assets/images/sparky/background.png
AssetGenImage get background =>
const AssetGenImage('assets/images/sparky/background.png');
/// File path: assets/images/sparky/character.png
AssetGenImage get character =>
const AssetGenImage('assets/images/sparky/character.png');
/// File path: assets/images/sparky/icon.png
AssetGenImage get icon =>
const AssetGenImage('assets/images/sparky/icon.png');
}
class Assets {

@ -12,5 +12,5 @@ class AndroidTheme extends CharacterTheme {
Color get ballColor => Colors.green;
@override
AssetGenImage get characterAsset => Assets.images.android;
AssetGenImage get characterAsset => Assets.images.android.character;
}

@ -12,5 +12,5 @@ class DashTheme extends CharacterTheme {
Color get ballColor => Colors.blue;
@override
AssetGenImage get characterAsset => Assets.images.dash;
AssetGenImage get characterAsset => Assets.images.dash.character;
}

@ -12,5 +12,5 @@ class DinoTheme extends CharacterTheme {
Color get ballColor => Colors.grey;
@override
AssetGenImage get characterAsset => Assets.images.dino;
AssetGenImage get characterAsset => Assets.images.dino.character;
}

@ -12,5 +12,5 @@ class SparkyTheme extends CharacterTheme {
Color get ballColor => Colors.orange;
@override
AssetGenImage get characterAsset => Assets.images.sparky;
AssetGenImage get characterAsset => Assets.images.sparky.character;
}

@ -21,9 +21,15 @@ flutter:
generate: true
assets:
- assets/images/
- assets/images/android/
- assets/images/dash/
- assets/images/dino/
- assets/images/sparky/
flutter_gen:
assets:
package_parameter_enabled: true
output: lib/src/generated/
line_length: 80
line_length: 80
integrations:
flutter_svg: true

@ -19,7 +19,10 @@ void main() {
});
test('characterAsset is correct', () {
expect(AndroidTheme().characterAsset, equals(Assets.images.android));
expect(
AndroidTheme().characterAsset,
equals(Assets.images.android.character),
);
});
});
}

@ -19,7 +19,10 @@ void main() {
});
test('characterAsset is correct', () {
expect(DashTheme().characterAsset, equals(Assets.images.dash));
expect(
DashTheme().characterAsset,
equals(Assets.images.dash.character),
);
});
});
}

@ -19,7 +19,10 @@ void main() {
});
test('characterAsset is correct', () {
expect(DinoTheme().characterAsset, equals(Assets.images.dino));
expect(
DinoTheme().characterAsset,
equals(Assets.images.dino.character),
);
});
});
}

@ -19,7 +19,10 @@ void main() {
});
test('characterAsset is correct', () {
expect(SparkyTheme().characterAsset, equals(Assets.images.sparky));
expect(
SparkyTheme().characterAsset,
equals(Assets.images.sparky.character),
);
});
});
}

Loading…
Cancel
Save