Skip to content

Commit

Permalink
Update themed_pane_item
Browse files Browse the repository at this point in the history
  • Loading branch information
alesimula committed Jan 2, 2022
1 parent 4a25ee4 commit 9cbf1c7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
4 changes: 3 additions & 1 deletion lib/widget/themed_pane_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const double _kCompactNavigationPanelWidth = 50.0;

class ThemablePaneItem extends PaneItem {

final MouseCursor? mouseCursor;
final PaneDisplayMode? forceDisplayMode;
final bool translucent;
final bool topHoverEffect;
Expand All @@ -17,6 +18,7 @@ class ThemablePaneItem extends PaneItem {
FocusNode? focusNode,
this.forceDisplayMode,
bool autofocus = false,
this.mouseCursor,
this.topHoverEffect = true,
this.translucent = false
}) : super(icon: icon, title: title, infoBadge: infoBadge, focusNode: focusNode, autofocus: autofocus);
Expand Down Expand Up @@ -69,7 +71,7 @@ class ThemablePaneItem extends PaneItem {
autofocus: autofocus ?? this.autofocus,
focusNode: focusNode,
onPressed: onPressed,
cursor: theme.cursor,
cursor: mouseCursor,
builder: (context, states) {
final textStyle = selected
? theme.selectedTextStyle?.resolve(states)
Expand Down
24 changes: 19 additions & 5 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,10 @@ packages:
description:
path: "."
ref: HEAD
resolved-ref: "03719a90e7e4afa722ebdb67d7f7508460657be2"
resolved-ref: "13bc913f99421f925c02454f2975aa6a1decbeb7"
url: "https://github.com/bdlukaa/fluent_ui.git"
source: git
version: "3.4.1"
version: "3.6.0"
flutter:
dependency: "direct main"
description: flutter
Expand Down Expand Up @@ -258,6 +258,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.11"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.2"
mdi:
dependency: "direct main"
description:
Expand Down Expand Up @@ -370,6 +377,13 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "4.0.0"
scroll_pos:
dependency: transitive
description:
name: scroll_pos
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.0"
shared_preferences:
dependency: transitive
description:
Expand Down Expand Up @@ -486,7 +500,7 @@ packages:
name: test_api
url: "https://pub.dartlang.org"
source: hosted
version: "0.4.3"
version: "0.4.8"
typed_data:
dependency: transitive
description:
Expand Down Expand Up @@ -544,5 +558,5 @@ packages:
source: hosted
version: "3.1.0"
sdks:
dart: ">=2.14.0 <3.0.0"
flutter: ">=2.5.0"
dart: ">=2.15.0 <3.0.0"
flutter: ">=2.8.0"

0 comments on commit 9cbf1c7

Please sign in to comment.