From 3b9113e3a09e53e4d8cc657601e0b7497a590fba Mon Sep 17 00:00:00 2001 From: Alex Melnyk Date: Fri, 26 Nov 2021 15:36:45 +0200 Subject: [PATCH] names fixed. --- CHANGELOG.md | 4 ++++ lib/src/widget.dart | 4 ++-- pubspec.yaml | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6050e21..ef8f02c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.3.0 + +* Animation controller could be passed via props. + ## 1.2.4 * Animation after dispose fixed. diff --git a/lib/src/widget.dart b/lib/src/widget.dart index 384ad26..410d717 100644 --- a/lib/src/widget.dart +++ b/lib/src/widget.dart @@ -52,7 +52,7 @@ class AdvancedDrawer extends StatefulWidget { /// Disable gestures. final bool disabledGestures; - /// Controller that controlls widget animation. + /// Controller that controls widget animation. final AnimationController? animationController; @override @@ -270,7 +270,7 @@ class _AdvancedDrawerState extends State _controller.dispose(); } - if (widget.animationContoller == null) { + if (widget.animationController == null) { _animationController.dispose(); } diff --git a/pubspec.yaml b/pubspec.yaml index e0364e9..3b8b132 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_advanced_drawer description: An advanced drawer widget, that can be fully customized with size, text, color, radius of corners. -version: 1.2.4 +version: 1.3.0 homepage: https://github.com/alex-melnyk/flutter_advanced_drawer repository: https://github.com/alex-melnyk/flutter_advanced_drawer issue_tracker: https://github.com/alex-melnyk/flutter_advanced_drawer/issues