Skip to content

Commit

Permalink
fix: tabs on changed type (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
nank1ro authored Jan 4, 2025
1 parent 374e2fc commit ba1bead
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.17.4

- **FIX** `ShadTabs` onChanged runtime exception due to misleading type

## 0.17.3

- **FIX**: `ShadTable` protect `onExit` from setting value after dispose (thanks to @jezell)
Expand Down
3 changes: 2 additions & 1 deletion lib/src/components/tabs.dart
Original file line number Diff line number Diff line change
Expand Up @@ -593,7 +593,8 @@ class _ShadTabState<T> extends State<ShadTab<T>> {
@override
Widget build(BuildContext context) {
final theme = ShadTheme.of(context);
final inherited = context.watch<ShadTabsState<dynamic>>();
final inherited =
context.watch<ShadTabsState<dynamic>>() as ShadTabsState<T>;

final tabsTheme = theme.tabsTheme;

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: shadcn_ui
description: shadcn-ui ported in Flutter. Awesome UI components for Flutter, fully customizable.
version: 0.17.3
version: 0.17.4
homepage: https://flutter-shadcn-ui.mariuti.com
repository: https://github.com/nank1ro/flutter-shadcn-ui
documentation: https://flutter-shadcn-ui.mariuti.com
Expand Down

0 comments on commit ba1bead

Please sign in to comment.