diff --git a/assets b/assets index 5048641..d786aec 160000 --- a/assets +++ b/assets @@ -1 +1 @@ -Subproject commit 5048641736865cf8fed1ccbce2535d4bbb284eb3 +Subproject commit d786aec161401a6e211bd20cd81bfed02349bd7a diff --git a/lib/models/towers/tower/monkey_paths.dart b/lib/models/towers/tower/monkey_paths.dart index 0d392a0..1df47d7 100644 --- a/lib/models/towers/tower/monkey_paths.dart +++ b/lib/models/towers/tower/monkey_paths.dart @@ -26,7 +26,8 @@ class MonkeyPathsModel { path3.add(UpgradeInfo.fromJson(path)); }); - paragon = - json['paragon'] != null ? UpgradeInfo.fromJson(json['paragon']) : null; + paragon = json['paragon'] is Map && !json['paragon'].isEmpty + ? UpgradeInfo.fromJson(json['paragon']) + : null; } } 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"