fix: apply code review

pull/181/head
arturplaczek 4 years ago
parent 3ccdf294c7
commit 003a9f215d

Binary file not shown.

Before

Width:  |  Height:  |  Size: 274 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 308 KiB

Before

Width:  |  Height:  |  Size: 3.9 KiB

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 223 KiB

@ -10,73 +10,81 @@ import 'package:flutter/widgets.dart';
class $AssetsImagesGen { class $AssetsImagesGen {
const $AssetsImagesGen(); const $AssetsImagesGen();
/// File path: assets/images/android.png $AssetsImagesAndroidGen get android => const $AssetsImagesAndroidGen();
AssetGenImage get android => const AssetGenImage('assets/images/android.png'); $AssetsImagesDashGen get dash => const $AssetsImagesDashGen();
$AssetsImagesDinoGen get dino => const $AssetsImagesDinoGen();
/// File path: assets/images/android_background.png /// File path: assets/images/pinball_button.png
AssetGenImage get androidBackground => AssetGenImage get pinballButton =>
const AssetGenImage('assets/images/android_background.png'); 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();
}
/// File path: assets/images/android_icon.png class $AssetsImagesAndroidGen {
AssetGenImage get androidIcon => const $AssetsImagesAndroidGen();
const AssetGenImage('assets/images/android_icon.png');
/// File path: assets/images/android_placeholder.png /// File path: assets/images/android/background.png
AssetGenImage get androidPlaceholder => AssetGenImage get background =>
const AssetGenImage('assets/images/android_placeholder.png'); const AssetGenImage('assets/images/android/background.png');
/// File path: assets/images/dash.png /// File path: assets/images/android/character.png
AssetGenImage get dash => const AssetGenImage('assets/images/dash.png'); AssetGenImage get character =>
const AssetGenImage('assets/images/android/character.png');
/// File path: assets/images/dash_background.png /// File path: assets/images/android/icon.png
AssetGenImage get dashBackground => AssetGenImage get icon =>
const AssetGenImage('assets/images/dash_background.png'); const AssetGenImage('assets/images/android/icon.png');
}
/// File path: assets/images/dash_icon.png class $AssetsImagesDashGen {
AssetGenImage get dashIcon => const $AssetsImagesDashGen();
const AssetGenImage('assets/images/dash_icon.png');
/// File path: assets/images/dash_placeholder.png /// File path: assets/images/dash/background.png
AssetGenImage get dashPlaceholder => AssetGenImage get background =>
const AssetGenImage('assets/images/dash_placeholder.png'); const AssetGenImage('assets/images/dash/background.png');
/// File path: assets/images/dino.png /// File path: assets/images/dash/character.png
AssetGenImage get dino => const AssetGenImage('assets/images/dino.png'); AssetGenImage get character =>
const AssetGenImage('assets/images/dash/character.png');
/// File path: assets/images/dino_background.png /// File path: assets/images/dash/icon.png
AssetGenImage get dinoBackground => AssetGenImage get icon => const AssetGenImage('assets/images/dash/icon.png');
const AssetGenImage('assets/images/dino_background.png'); }
/// File path: assets/images/dino_icon.png class $AssetsImagesDinoGen {
AssetGenImage get dinoIcon => const $AssetsImagesDinoGen();
const AssetGenImage('assets/images/dino_icon.png');
/// File path: assets/images/dino_placeholder.png /// File path: assets/images/dino/background.png
AssetGenImage get dinoPlaceholder => AssetGenImage get background =>
const AssetGenImage('assets/images/dino_placeholder.png'); const AssetGenImage('assets/images/dino/background.png');
/// File path: assets/images/pinball_button.png /// File path: assets/images/dino/character.png
AssetGenImage get pinballButton => AssetGenImage get character =>
const AssetGenImage('assets/images/pinball_button.png'); const AssetGenImage('assets/images/dino/character.png');
/// File path: assets/images/select_character_background.png /// File path: assets/images/dino/icon.png
AssetGenImage get selectCharacterBackground => AssetGenImage get icon => const AssetGenImage('assets/images/dino/icon.png');
const AssetGenImage('assets/images/select_character_background.png'); }
/// File path: assets/images/sparky.png class $AssetsImagesSparkyGen {
AssetGenImage get sparky => const AssetGenImage('assets/images/sparky.png'); const $AssetsImagesSparkyGen();
/// File path: assets/images/sparky_background.png /// File path: assets/images/sparky/background.png
AssetGenImage get sparkyBackground => AssetGenImage get background =>
const AssetGenImage('assets/images/sparky_background.png'); const AssetGenImage('assets/images/sparky/background.png');
/// File path: assets/images/sparky_icon.png /// File path: assets/images/sparky/character.png
AssetGenImage get sparkyIcon => AssetGenImage get character =>
const AssetGenImage('assets/images/sparky_icon.png'); const AssetGenImage('assets/images/sparky/character.png');
/// File path: assets/images/sparky_placeholder.png /// File path: assets/images/sparky/icon.png
AssetGenImage get sparkyPlaceholder => AssetGenImage get icon =>
const AssetGenImage('assets/images/sparky_placeholder.png'); 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,6 +21,10 @@ 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:

Loading…
Cancel
Save