diff --git a/android/gradle.properties b/android/gradle.properties index 6bf54a6ed821c19f76d860d4a24e7c85d440b575..f0be9fb67d6fe0b36ce90df03ff2f3f1551d738c 100644 --- a/android/gradle.properties +++ b/android/gradle.properties @@ -1,5 +1,5 @@ org.gradle.jvmargs=-Xmx1536M android.useAndroidX=true android.enableJetifier=true -app.versionName=0.0.10 -app.versionCode=10 +app.versionName=0.0.11 +app.versionCode=11 diff --git a/assets/placeholder.png b/assets/placeholder.png new file mode 100644 index 0000000000000000000000000000000000000000..9c9e7153c4ac87b54574b24a2cef2d27678c6cd7 Binary files /dev/null and b/assets/placeholder.png differ diff --git a/lib/screens/game_pick_word.dart b/lib/screens/game_pick_word.dart index ae788672c4f6635e1031c1a6ececba682e408b10..179d9674fd0a8c8ad486c6305334b1fca37fae13 100644 --- a/lib/screens/game_pick_word.dart +++ b/lib/screens/game_pick_word.dart @@ -51,13 +51,16 @@ class GamePickWordPage extends StatelessWidget { } Container _buildImageContainer(String image, Color color) { + String imageAsset = 'assets/placeholder.png'; + if (image != null) { + imageAsset = 'assets/images/'+image; + } + return Container( padding: EdgeInsets.all(10), child: FlatButton( color: Colors.teal, - child: image == null ? - Text('') : - Image(image: AssetImage('assets/images/'+image)), + child: Image(image: AssetImage(imageAsset)), ), ); } diff --git a/pubspec.yaml b/pubspec.yaml index c9eb8057f10c9b5eaf2590f4c30fff08da6a1aa0..925fde5b67aeb7cab7c7274b84836fbc4fd6fb1c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -22,3 +22,4 @@ flutter: - assets/assets_images.json - assets/files/ - assets/images/ + - assets/placeholder.png