diff --git a/CHANGELOG.md b/CHANGELOG.md index a0712a7..c3d82cc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.1.1 + +- Correct unnecessary statements +- Erased a declaration not referenced + ## 0.1.0 - Initial version. diff --git a/README.md b/README.md index 1feaba7..db9e865 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # CubixD, a 3d cube
- 3d cube mooving from right to left + 3d cube mooving from right to left
## Installation @@ -10,7 +10,7 @@ Add cubixd to your pubspec.yaml dependencies ```yaml dependencies: - cubixd: ^0.1.0 + cubixd: ^0.1.1 ``` And then import it: @@ -143,7 +143,7 @@ If this parameter isn't set (null). The user won't be able to move the cubixd As a result we obtain
- Mooving a 3d cube with the mouse + Mooving a 3d cube with the mouse
### advancedXYposAnim @@ -374,7 +374,7 @@ Hints: **Here's a slow motion of the result:**
- Circle stars splashing when selecting + Circle stars splashing when selecting
### simplePosAnim @@ -496,7 +496,7 @@ CubixD( As a result we obtain:
- Mooving a 3d cube with the mouse + Mooving a 3d cube with the mouse
## Extras @@ -521,7 +521,7 @@ Otherwise, if the vertical angle is grater than 90°. A horizontal angle grater has a direction from left to right.
- 3d cube rotating on itself showing its angles of rotation + 3d cube rotating on itself showing its angles of rotation
### TODO diff --git a/lib/src/widgets/animatedCubixD.widget.dart b/lib/src/widgets/animatedCubixD.widget.dart index 7deaedc..a85334c 100644 --- a/lib/src/widgets/animatedCubixD.widget.dart +++ b/lib/src/widgets/animatedCubixD.widget.dart @@ -701,7 +701,7 @@ class _AnimatedCubixDState extends State // Begin handle selection and restoring mechanism void _onPanUpdate() { _advancedXYposAnim.controller.stop(); - widget.onPanUpdate != null ? widget.onPanUpdate!() : null; + if (widget.onPanUpdate != null) widget.onPanUpdate!(); } void _seleCall(SelectedSide opt, Vector2 tmp) { diff --git a/lib/src/widgets/cubixd.widget.dart b/lib/src/widgets/cubixd.widget.dart index 84aebb9..ee7d559 100644 --- a/lib/src/widgets/cubixd.widget.dart +++ b/lib/src/widgets/cubixd.widget.dart @@ -405,32 +405,3 @@ class _CubixDState extends State with SingleTickerProviderStateMixin { return SelectedSide.left; } } - -class _CircleBlurPainter extends CustomPainter { - _CircleBlurPainter({ - required this.circleWidth, - required this.blurSigma, - required this.color, - }); - final Color color; - final double circleWidth; - final double blurSigma; - - @override - void paint(Canvas canvas, Size size) { - Paint line = Paint() - ..color = color - ..strokeCap = StrokeCap.round - ..style = PaintingStyle.stroke - ..strokeWidth = circleWidth - ..maskFilter = MaskFilter.blur(BlurStyle.normal, blurSigma); - Offset center = Offset(size.width / 2, size.height / 2); - double radius = math.min(size.width / 2, size.height / 2); - canvas.drawCircle(center, radius, line); - } - - @override - bool shouldRepaint(CustomPainter oldDelegate) { - return true; - } -} diff --git a/pubspec.yaml b/pubspec.yaml index aeb337b..60f969a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: cubixd -description: Add a 3d cube to your app! -version: 0.1.0 +description: An animated 3d cube widget and static 3d cube widget, support selection. +version: 0.1.1 repository: https://github.com/ElRojo7u7/cubixd # homepage: https://www.example.com