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", "@@locale": "en",
"play": "Play", "play": "Play",
"@play": { "@play": {
"description": "Text displayed on the landing page play button" "description": "Text displayed on the landing page play button"
}, },
"howToPlay": "How to Play", "howToPlay": "How to Play",
"@howToPlay": { "@howToPlay": {
"description": "Text displayed on the landing page how to play button" "description": "Text displayed on the landing page how to play button"
}, },
"launchControls": "Launch Controls", "launchControls": "Launch Controls",
"@launchControls": { "@launchControls": {
"description": "Text displayed on the how to play dialog with the launch controls" "description": "Text displayed on the how to play dialog with the launch controls"
}, },
"flipperControls": "Flipper Controls", "flipperControls": "Flipper Controls",
"@flipperControls": { "@flipperControls": {
"description": "Text displayed on the how to play dialog with the flipper controls" "description": "Text displayed on the how to play dialog with the flipper controls"
}, },
"start": "Start", "start": "Start",
"@start": { "@start": {
"description": "Text displayed on the character selection page start button" "description": "Text displayed on the character selection page start button"
}, },
"characterSelectionTitle": "Choose your character!", "select": "Select",
"@characterSelectionTitle": { "@select": {
"description": "Title text displayed on the character selection page" "description": "Text displayed on the character selection page select button"
}, },
"gameOver": "Game Over", "characterSelectionTitle": "Choose your character!",
"@gameOver": { "@characterSelectionTitle": {
"description": "Text displayed on the ending dialog when game finishes" "description": "Title text displayed on the character selection page"
}, },
"leaderboard": "Leaderboard", "characterSelectionSubtitle": "Theres no wrong answer",
"@leaderboard": { "@characterSelectionSubtitle": {
"description": "Text displayed on the ending dialog leaderboard button" "description": "Text displayed on the selecting character dialog at game beginning"
}, },
"rank": "Rank", "gameOver": "Game Over",
"@rank": { "@gameOver": {
"description": "Text displayed on the leaderboard page header rank column" "description": "Text displayed on the ending dialog when game finishes"
}, },
"character": "Character", "leaderboard": "Leaderboard",
"@character": { "@leaderboard": {
"description": "Text displayed on the leaderboard page header character column" "description": "Text displayed on the ending dialog leaderboard button"
}, },
"username": "Username", "rank": "Rank",
"@username": { "@rank": {
"description": "Text displayed on the leaderboard page header userName column" "description": "Text displayed on the leaderboard page header rank column"
}, },
"score": "Score", "character": "Character",
"@score": { "@character": {
"description": "Text displayed on the leaderboard page header score column" "description": "Text displayed on the leaderboard page header character column"
}, },
"retry": "Retry", "username": "Username",
"@retry": { "@username": {
"description": "Text displayed on the retry button leaders board page" "description": "Text displayed on the leaderboard page header userName column"
}, },
"addUser": "Add User", "score": "Score",
"@addUser": { "@score": {
"description": "Text displayed on the add user button at ending dialog" "description": "Text displayed on the leaderboard page header score column"
}, },
"error": "Error", "retry": "Retry",
"@error": { "@retry": {
"description": "Text displayed on the ending dialog when there is any error on sending user" "description": "Text displayed on the retry button leaders board page"
}, },
"yourScore": "Your score is", "addUser": "Add User",
"@yourScore": { "@addUser": {
"description": "Text displayed on the ending dialog when game finishes to show the final score" "description": "Text displayed on the add user button at ending dialog"
}, },
"enterInitials": "Enter your initials", "error": "Error",
"@enterInitials": { "@error": {
"description": "Text displayed on the ending dialog when game finishes to ask the user for his initials" "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 /// FlutterGen
/// ***************************************************** /// *****************************************************
// ignore_for_file: directives_ordering,unnecessary_import
import 'package:flutter/widgets.dart'; import 'package:flutter/widgets.dart';
class $AssetsImagesGen { class $AssetsImagesGen {
const $AssetsImagesGen(); const $AssetsImagesGen();
AssetGenImage get android => const AssetGenImage('assets/images/android.png'); $AssetsImagesAndroidGen get android => const $AssetsImagesAndroidGen();
AssetGenImage get dash => const AssetGenImage('assets/images/dash.png'); $AssetsImagesDashGen get dash => const $AssetsImagesDashGen();
AssetGenImage get dino => const AssetGenImage('assets/images/dino.png'); $AssetsImagesDinoGen get dino => const $AssetsImagesDinoGen();
AssetGenImage get sparky => const AssetGenImage('assets/images/sparky.png');
/// 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 { class Assets {

@ -12,5 +12,5 @@ class AndroidTheme extends CharacterTheme {
Color get ballColor => Colors.green; Color get ballColor => Colors.green;
@override @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; Color get ballColor => Colors.blue;
@override @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; Color get ballColor => Colors.grey;
@override @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; Color get ballColor => Colors.orange;
@override @override
AssetGenImage get characterAsset => Assets.images.sparky; AssetGenImage get characterAsset => Assets.images.sparky.character;
} }

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

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

Loading…
Cancel
Save