diff --git a/CHANGELOG.md b/CHANGELOG.md index 658c8af..1cd682b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.1.4 + +Fix visability state + ## 0.1.3 Add onTap callback diff --git a/example/pubspec.lock b/example/pubspec.lock index 2d263df..8aaed01 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -148,7 +148,7 @@ packages: path: ".." relative: true source: path - version: "0.1.3" + version: "0.1.4" typed_data: dependency: transitive description: diff --git a/lib/transformable_frame.dart b/lib/transformable_frame.dart index 056ef52..242ecea 100644 --- a/lib/transformable_frame.dart +++ b/lib/transformable_frame.dart @@ -56,7 +56,6 @@ class _TransformableFrameState extends State { @override void initState() { - _visable = widget.visable; matrix = widget.matrix ?? Matrix4.identity(); _handlerMatrix = Matrix4.identity(); size = widget.size ?? Size(double.infinity, double.infinity); @@ -115,6 +114,8 @@ class _TransformableFrameState extends State { @override Widget build(BuildContext context) { + _visable = widget.visable; + return Transform( transform: matrix, alignment: FractionalOffset.center, diff --git a/pubspec.yaml b/pubspec.yaml index c2d41d9..f200dd6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: transformable_frame description: Transformable frame. -version: 0.1.3 +version: 0.1.4 author: Mehdi Zarepour homepage: https://github.com/mehdizarepour/transformable_frame