Skip to content

Commit

Permalink
Minimal errors corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
ElRojo7u7 committed Dec 24, 2022
1 parent 82811b4 commit f07b413
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 38 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.1.1

- Correct unnecessary statements
- Erased a declaration not referenced

## 0.1.0

- Initial version.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# CubixD, a 3d cube

<div align="center">
<img src="./screenshots/main.webp" alt="3d cube mooving from right to left" title="Main demostration">
<img src="https://raw.githubusercontent.com/ElRojo7u7/cubixd/main/screenshots/main.webp" alt="3d cube mooving from right to left" title="Main demostration">
</div>

## Installation
Expand All @@ -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:
Expand Down Expand Up @@ -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

<div align="center">
<img src="./screenshots/out-of-order.webp" alt="Mooving a 3d cube with the mouse" title="Out of order">
<img src="https://raw.githubusercontent.com/ElRojo7u7/cubixd/main/screenshots/out-of-order.webp" alt="Mooving a 3d cube with the mouse" title="Out of order">
</div>

### advancedXYposAnim
Expand Down Expand Up @@ -374,7 +374,7 @@ Hints:
**Here's a slow motion of the result:**

<div align="center">
<img src="./screenshots/circle-stars.webp" alt="Circle stars splashing when selecting" title="Circle stars">
<img src="https://raw.githubusercontent.com/ElRojo7u7/cubixd/main/screenshots/circle-stars.webp" alt="Circle stars splashing when selecting" title="Circle stars">
</div>

### simplePosAnim
Expand Down Expand Up @@ -496,7 +496,7 @@ CubixD(
As a result we obtain:

<div align="center">
<img src="./screenshots/static.webp" alt="Mooving a 3d cube with the mouse" title="Static">
<img src="https://raw.githubusercontent.com/ElRojo7u7/cubixd/main/screenshots/static.webp" alt="Mooving a 3d cube with the mouse" title="Static">
</div>

## Extras
Expand All @@ -521,7 +521,7 @@ Otherwise, if the vertical angle is grater than 90°. A horizontal angle grater
has a direction from left to right.

<div align="center">
<img src="./screenshots/angles.webp" alt="3d cube rotating on itself showing its angles of rotation" title="Angles and direction">
<img src="https://raw.githubusercontent.com/ElRojo7u7/cubixd/main/screenshots/angles.webp" alt="3d cube rotating on itself showing its angles of rotation" title="Angles and direction">
</div>

### TODO
Expand Down
2 changes: 1 addition & 1 deletion lib/src/widgets/animatedCubixD.widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ class _AnimatedCubixDState extends State<AnimatedCubixD>
// 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) {
Expand Down
29 changes: 0 additions & 29 deletions lib/src/widgets/cubixd.widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -405,32 +405,3 @@ class _CubixDState extends State<CubixD> 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;
}
}
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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

Expand Down

0 comments on commit f07b413

Please sign in to comment.