From f45cc5840c77c83993ff3895af915d65ea7b9d3d Mon Sep 17 00:00:00 2001 From: kramo Date: Mon, 16 Dec 2024 14:42:41 +0100 Subject: [PATCH] Correct typo --- lib/image.dart | 10 +++++----- lib/widgets/unique/editor.dart | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/image.dart b/lib/image.dart index 4a34859..71463da 100644 --- a/lib/image.dart +++ b/lib/image.dart @@ -23,18 +23,18 @@ class SlyImageAttribute { : this(attribute.name, attribute.value); } -class SlyClamptedAttribute extends SlyImageAttribute { +class SlyClampedAttribute extends SlyImageAttribute { final T min; final T max; - SlyClamptedAttribute( + SlyClampedAttribute( super.name, super.value, this.min, this.max, ); - SlyClamptedAttribute.copy(SlyClamptedAttribute attribute) + SlyClampedAttribute.copy(SlyClampedAttribute attribute) : this( attribute.name, attribute.value, @@ -43,7 +43,7 @@ class SlyClamptedAttribute extends SlyImageAttribute { ); } -class SlyOverflowAttribute extends SlyClamptedAttribute { +class SlyOverflowAttribute extends SlyClampedAttribute { @override set value(int v) { if (v < value) { @@ -75,7 +75,7 @@ class SlyOverflowAttribute extends SlyClamptedAttribute { ); } -class SlyRangeAttribute extends SlyClamptedAttribute { +class SlyRangeAttribute extends SlyClampedAttribute { final double anchor; SlyRangeAttribute( diff --git a/lib/widgets/unique/editor.dart b/lib/widgets/unique/editor.dart index c01a5a9..ef3dde8 100644 --- a/lib/widgets/unique/editor.dart +++ b/lib/widgets/unique/editor.dart @@ -111,7 +111,7 @@ class _SlyEditorPageState extends State { final copyImage = SlyImage.from(_editedImage); final rotationAttr = - copyImage.geometryAttributes['rotation']! as SlyClamptedAttribute; + copyImage.geometryAttributes['rotation']! as SlyClampedAttribute; if (![rotationAttr.min, rotationAttr.max].contains(rotationAttr.value)) { copyImage.rotate(rotationAttr.value * 90);