From 6ff7e445b61d3635ca609c0e59fc8670871c88ca Mon Sep 17 00:00:00 2001 From: Shai Date: Thu, 9 May 2024 19:18:30 +0300 Subject: [PATCH] fixed adv stats for heroes and bump version --- lib/presentation/widgets/heroes/hero_stats.dart | 4 ++-- lib/utilities/constants.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/presentation/widgets/heroes/hero_stats.dart b/lib/presentation/widgets/heroes/hero_stats.dart index 0d6e6ba..0598809 100644 --- a/lib/presentation/widgets/heroes/hero_stats.dart +++ b/lib/presentation/widgets/heroes/hero_stats.dart @@ -96,9 +96,9 @@ class StatsList extends StatelessWidget { shrinkWrap: true, physics: const NeverScrollableScrollPhysics(), primary: false, - itemCount: dynamicItemValue['value'].length, + itemCount: dynamicItemValue['values'].length, itemBuilder: (BuildContext context, int index) { - final listData = dynamicItemValue['value']; + final listData = dynamicItemValue['values']; final dynamicItemValueValue = listData[index]; return ListTile( title: Text( diff --git a/lib/utilities/constants.dart b/lib/utilities/constants.dart index 178ae76..e485fb8 100644 --- a/lib/utilities/constants.dart +++ b/lib/utilities/constants.dart @@ -8,7 +8,7 @@ const String kBosses = 'bosses'; const String kMinions = 'minions'; const String kMaps = 'maps'; -const int gameVersion = 41; +const int gameVersion = 42; const int kTowersIndex = 0; const int kHeroesIndex = 1; diff --git a/pubspec.yaml b/pubspec.yaml index 25dd2fc..7f58234 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -17,7 +17,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.2.0-41+22 +version: 1.2.1-42+23 environment: sdk: ">=2.18.5 <4.0.0"