Skip to content

Commit

Permalink
fix: WidgetBinding.instance issue
Browse files Browse the repository at this point in the history
  • Loading branch information
loonix committed Jun 29, 2022
1 parent 03799ae commit 99576bd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
## 1.1.1 - 29/06/2022
Bugfix to WidgetsBinding -> https://github.com/loonix/another_xlider/issues/12 flagged by @greyovo
## 1.1.0 - 21/05/2022 (Flutter 3 upgrade)

### What's Changed
Expand Down
2 changes: 1 addition & 1 deletion lib/another_xlider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ class FlutterSliderState extends State<FlutterSlider>
parent: _rightTooltipAnimationController,
curve: Curves.fastOutSlowIn));

WidgetsBinding.instance.addPostFrameCallback((_) {
WidgetsBinding.instance?.addPostFrameCallback((_) {
if (!mounted) {
return;
}
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: another_xlider
description: (Another Xlider) A material design slider and range slider, horizontal and vertical, with RTL support and lots of options and customizations for flutter
version: 1.1.0
version: 1.1.1
homepage: https://github.com/loonix/another_xlider

environment:
Expand Down

0 comments on commit 99576bd

Please sign in to comment.