Skip to content

Commit

Permalink
fixed index out of range exception in cg tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariemeth committed Jan 11, 2024
1 parent db92563 commit 93b0e27
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/screens/roster/combatGroup/combat_groups_display.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ class _CombatGroupsDisplayState extends State<CombatGroupsDisplay>
tabIndex = max(tabIndex, 1);
tabIndex = min(tabIndex, tabs.length - 1);
tabController.animateTo(tabIndex);
roster.setActiveCG(roster.getCGs()[tabIndex].name);
final rosterIndex = min(tabIndex, roster.getCGs().length - 1);
roster.setActiveCG(roster.getCGs()[rosterIndex].name);
},
);

Expand Down
2 changes: 1 addition & 1 deletion lib/screens/roster/roster.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import 'package:url_launcher/url_launcher_string.dart';
const double _leftPanelWidth = 670.0;
const double _titleHeight = 40.0;
const double _menuTitleHeight = 50.0;
const String _version = '0.102.2';
const String _version = '0.102.3';
const String _bugEmailAddress = '[email protected]';
const String _dp9URL = 'https://www.dp9.com/';
const String _sourceCodeURL = 'https://github.com/Ariemeth/gearforce-flutter';
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: "none" # Remove this line if you wish to publish to pub.dev
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html

version: 0.102.2
version: 0.102.3

environment:
sdk: ">=3.0.0"
Expand Down

0 comments on commit 93b0e27

Please sign in to comment.