Skip to content

Commit

Permalink
Release v0.17.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Frezyx committed Apr 8, 2024
1 parent 41b4c3a commit 1e1850e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 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.1
* Add deprecated annotation for **iconWidget** field
* Fix **SidebarXItem** assert rules

## 0.17.0
* Add **selectable** field for **SidebarXItem**
* Add **hoverIconTheme** field for **SidebarXTheme**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Follow these steps to use this package

```yaml
dependencies:
sidebarx: ^0.17.0
sidebarx: ^0.17.1
```
### Add import package
Expand Down
9 changes: 4 additions & 5 deletions lib/src/models/sidebarx_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,21 @@ import 'package:flutter/cupertino.dart';

typedef SidebarXItemBuilder = Widget Function(
bool selected,
bool hidden,
bool hovered,
);

class SidebarXItem {
const SidebarXItem({
this.label,
this.icon,
this.iconWidget,
@Deprecated('Use iconBuilder instead') this.iconWidget,
this.iconBuilder,
this.onTap,
this.onLongPress,
this.onSecondaryTap,
this.selectable = true,
this.iconBuilder,
}) : assert(
(icon != null || iconWidget != null) &&
(icon == null || iconWidget == null),
(icon != null || iconBuilder != null || iconWidget != null),
'You can create SidebarXItem with IconData? icon or with Widget? iconWidget',
);

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: sidebarx
description: flutter multiplatform navigation sidebar / side navigationbar / drawer widget
version: 0.17.0
version: 0.17.1
homepage: https://github.com/Frezyx/sidebarx
repository: https://github.com/Frezyx/sidebarx

Expand Down

0 comments on commit 1e1850e

Please sign in to comment.