Skip to content

Commit 99576bd

Browse files
fix: WidgetBinding.instance issue
1 parent 03799ae commit 99576bd

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## 1.1.1 - 29/06/2022
2+
Bugfix to WidgetsBinding -> https://github.com/loonix/another_xlider/issues/12 flagged by @greyovo
13
## 1.1.0 - 21/05/2022 (Flutter 3 upgrade)
24

35
### What's Changed

lib/another_xlider.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ class FlutterSliderState extends State<FlutterSlider>
438438
parent: _rightTooltipAnimationController,
439439
curve: Curves.fastOutSlowIn));
440440

441-
WidgetsBinding.instance.addPostFrameCallback((_) {
441+
WidgetsBinding.instance?.addPostFrameCallback((_) {
442442
if (!mounted) {
443443
return;
444444
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: another_xlider
22
description: (Another Xlider) A material design slider and range slider, horizontal and vertical, with RTL support and lots of options and customizations for flutter
3-
version: 1.1.0
3+
version: 1.1.1
44
homepage: https://github.com/loonix/another_xlider
55

66
environment:

0 commit comments

Comments
 (0)