Skip to content

Commit

Permalink
v6.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Dec 31, 2024
1 parent 5bb7585 commit 6b3e185
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [6.14.0] - 2024-12-31

* Update copyright year
* New `currentTabIndex` method added to `NavigationHubStateActions` to set the current tab index

## [6.13.1] - 2024-12-29

* Fix form.dart
Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2024 Anthony Gordon
Copyright (c) 2025 Anthony Gordon

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 11 additions & 0 deletions lib/widgets/navigation_hub/navigation_hub.dart
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ abstract class NavigationHub<T extends StatefulWidget> extends NyState<T> {
reset[index] = true;
break;
}
case 'update-tab':
{
int index = data['tab-index'];
currentIndex = index;
break;
}
default:
{}
}
Expand Down Expand Up @@ -570,4 +576,9 @@ class NavigationHubStateActions extends StateActions {
await NyStorage.save(_navigationTabStateName(tab), 0);
updateState(_navigationTabStateName(tab), data: 0);
}

/// Update the tab index
currentTabIndex(int tabIndex) {
updateState(state, data: {"action": "update-tab", "tab-index": tabIndex});
}
}
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: nylo_support
description: Support library for the Nylo framework. This library supports routing, widgets, localization, cli, storage and more.
version: 6.13.1
version: 6.14.0
homepage: https://nylo.dev
repository: https://github.com/nylo-core/support/tree/6.x
issue_tracker: https://github.com/nylo-core/support/issues
Expand Down

0 comments on commit 6b3e185

Please sign in to comment.