Skip to content

Commit

Permalink
Fix range slider tooltip (#230)
Browse files Browse the repository at this point in the history
* Fix range slider tooltip

* Commit from GitHub Actions (Forui Presubmit)

---------

Co-authored-by: Pante <[email protected]>
  • Loading branch information
Pante and Pante committed Oct 21, 2024
1 parent 0210136 commit dd22431
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 4 additions & 0 deletions forui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.6.1

* Fix range slider not displaying tooltip for minimum thumb.

## 0.6.0

### Additions
Expand Down
2 changes: 1 addition & 1 deletion forui/example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.6.0"
version: "0.6.1"
forui_assets:
dependency: transitive
description:
Expand Down
2 changes: 0 additions & 2 deletions forui/lib/src/widgets/slider/thumb.dart
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,6 @@ class _ThumbState extends State<Thumb> with SingleTickerProviderStateMixin {
void didChangeDependencies() {
super.didChangeDependencies();
_controller = InheritedController.of(context);
_controller.tooltips.remove(_key, _tooltip);
_key = widget.min ? FSliderTooltipsController.min : FSliderTooltipsController.max;
_controller.tooltips.add(_key, _tooltip);
}

Expand Down
2 changes: 1 addition & 1 deletion forui/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: forui
description: Forui is a UI library for Flutter that provides a set of minimalistic widgets heavily inspired by Shadcn/ui.
version: 0.6.0
version: 0.6.1
homepage: https://forui.dev/
documentation: https://forui.dev/docs
repository: https://github.com/forus-labs/forui/tree/main/forui
Expand Down

0 comments on commit dd22431

Please sign in to comment.