diff --git a/android/gradle.properties b/android/gradle.properties index c2a871af8ab063d06f9d9304e63850ba93031951..357cef39a7f1619a4f0ba1c191a85a0dd10b7266 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.24 -app.versionCode=24 +app.versionName=0.0.25 +app.versionCode=25 diff --git a/assets/game/difficulty_3x3.png b/assets/game/difficulty_3x3.png new file mode 100644 index 0000000000000000000000000000000000000000..0bde256ef61a433321973f3b714cb13a5a76ae36 Binary files /dev/null and b/assets/game/difficulty_3x3.png differ diff --git a/assets/game/difficulty_4x4.png b/assets/game/difficulty_4x4.png new file mode 100644 index 0000000000000000000000000000000000000000..67364276383e39456f05791a88fabd3001513b4b Binary files /dev/null and b/assets/game/difficulty_4x4.png differ diff --git a/assets/game/difficulty_5x5.png b/assets/game/difficulty_5x5.png new file mode 100644 index 0000000000000000000000000000000000000000..087591fa02fcb21b57b47ebddaeb35b01261b05d Binary files /dev/null and b/assets/game/difficulty_5x5.png differ diff --git a/lib/screens/home.dart b/lib/screens/home.dart index 5a5ff1256cdb4fa99689898484f41a8d085f9bb1..94f996f37497d19e8c6989f775631cfd6928a9ec 100644 --- a/lib/screens/home.dart +++ b/lib/screens/home.dart @@ -109,14 +109,29 @@ class Home extends StatelessWidget { } FlatButton _buildTilesetSizeSelectorItem(Data myProvider, int value) { - String text = value.toString()+'x'+value.toString(); + String assetName = 'assets/game/difficulty_' + value.toString() + 'x' + value.toString() + '.png'; + + Color borderColor = Colors.blue; if (myProvider.tilesCount == value) { - text = '['+text+']'; + borderColor = Colors.white; } return FlatButton( - child: Text(text), + child: Container( + decoration: BoxDecoration( + borderRadius: BorderRadius.circular(4), + border: Border.all( + color: borderColor, + width: 4, + ), + ), + margin: EdgeInsets.all(8), + child: Image( + image: AssetImage(assetName), + fit: BoxFit.fill + ), + ), onPressed: () { myProvider.updateTilesCount = value; }, ); } diff --git a/pubspec.yaml b/pubspec.yaml index 0b9ed1a12410931590f37c5c0286330826ab5bc9..7805c97da3d2aa1176471cdcecd27cc45ec51102 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -20,5 +20,6 @@ flutter: uses-material-design: true assets: - assets/files/ + - assets/game/ - assets/images/ - assets/ui/