Skip to content

Commit d4000f7

Browse files
committed
fix(lint): resolve lint issues
1 parent e587731 commit d4000f7

File tree

10 files changed

+20
-17
lines changed

10 files changed

+20
-17
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## 10.5.3
4+
- **FIX**(helper-lines): Resolve lint issues after upgrading to `flutter_lints: ^6.0.0`.
5+
36
## 10.5.2
47
- **FIX**(helper-lines): Resolve issue where helper lines are visible when hovering over the layer remove zone. This resolves issue [#561](https://github.com/hm21/pro_image_editor/issues/561).
58

lib/features/crop_rotate_editor/mixins/crop_area_history.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,5 +434,5 @@ mixin CropAreaHistory
434434
/// it fits within the screen dimensions appropriately. It should be
435435
/// overridden to implement specific fitting logic.
436436
@protected
437-
calcFitToScreen() {}
437+
void calcFitToScreen() {}
438438
}

lib/features/main_editor/services/layer_interaction_manager.dart

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ class LayerInteractionManager {
171171
/// - Setting `_rotationStartedHelper` to `false`.
172172
/// - Enabling the display of helper lines by setting `showHelperLines` to
173173
/// `true`.
174-
reset() {
174+
void reset() {
175175
_rotateScaleButtonStartPosition = null;
176176
_rotationStartedHelper = false;
177177
showHelperLines = true;
@@ -202,7 +202,7 @@ class LayerInteractionManager {
202202
}
203203

204204
/// Calculates scaling and rotation based on user interactions.
205-
calculateInteractiveButtonScaleRotate({
205+
void calculateInteractiveButtonScaleRotate({
206206
required double editorScaleFactor,
207207
required Offset editorScaleOffset,
208208
required ProImageEditorConfigs configs,
@@ -302,7 +302,7 @@ class LayerInteractionManager {
302302

303303
/// Calculates movement of a layer based on user interactions, considering
304304
/// various conditions such as hit areas and screen boundaries.
305-
calculateMovement({
305+
void calculateMovement({
306306
required double editorScaleFactor,
307307
required BuildContext context,
308308
required ScaleUpdateDetails detail,
@@ -426,7 +426,7 @@ class LayerInteractionManager {
426426
}
427427

428428
/// Calculates scaling and rotation of a layer based on user interactions.
429-
calculateScaleRotate({
429+
void calculateScaleRotate({
430430
required ProImageEditorConfigs configs,
431431
required ScaleUpdateDetails detail,
432432
required Layer activeLayer,
@@ -455,7 +455,7 @@ class LayerInteractionManager {
455455

456456
/// Checks the rotation line based on user interactions, adjusting rotation
457457
/// accordingly.
458-
checkRotationLine({
458+
void checkRotationLine({
459459
required Layer activeLayer,
460460
required Size editorSize,
461461
required double editorScaleFactor,
@@ -509,7 +509,7 @@ class LayerInteractionManager {
509509
}
510510

511511
/// Handles the initialization logic when a scaling gesture starts on a layer.
512-
onScaleStart({
512+
void onScaleStart({
513513
required Layer selectedLayer,
514514
}) {
515515
baseScaleFactor = selectedLayer.scale;
@@ -540,7 +540,7 @@ class LayerInteractionManager {
540540

541541
/// Handles cleanup and resets various flags and states after scaling
542542
/// interaction ends.
543-
onScaleEnd() {
543+
void onScaleEnd() {
544544
enabledHitDetection = true;
545545
freeStyleHighPerformanceScaling = false;
546546
freeStyleHighPerformanceMoving = false;

lib/plugins/defer_pointer/defer_pointer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class DeferPointer extends StatelessWidget {
3434
Widget build(BuildContext context) {
3535
final link = this.link ?? DeferredPointerHandler.of(context).link;
3636
return _DeferPointerRenderObjectWidget(
37-
link: link as DeferredPointerHandlerLink,
37+
link: link,
3838
deferPaint: paintOnTop,
3939
child: child,
4040
);

lib/plugins/defer_pointer/deferred_pointer_handler.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class DeferredPointerHandler extends StatefulWidget {
3838
/// one.
3939
class DeferredPointerHandlerState extends State<DeferredPointerHandler> {
4040
final DeferredPointerHandlerLink _link = DeferredPointerHandlerLink();
41-
get link => _link;
41+
DeferredPointerHandlerLink get link => _link;
4242

4343
late String _id;
4444

lib/plugins/emoji_picker_flutter/src/category_view/default_category_view.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class DefaultCategoryViewState extends CategoryViewState {
4040
);
4141
}
4242

43-
Widget _buildExtraTab(extraTab) {
43+
Widget _buildExtraTab(CategoryExtraTab? extraTab) {
4444
if (extraTab == CategoryExtraTab.BACKSPACE) {
4545
return BackspaceButton(
4646
widget.config,

lib/shared/mixins/extended_loop.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ mixin ExtendedLoop {
3838
/// },
3939
/// );
4040
/// ```
41-
loopWithTransitionTiming(
41+
Future<void> loopWithTransitionTiming(
4242
void Function(double curveT) function, {
4343
required Duration duration,
4444
required bool mounted,

lib/shared/services/import_export/utils/history_compatibility/history_compatibility_layer_interaction.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import '../../constants/export_import_version.dart';
1717
/// - `layerMap`: A map representing the layer data.
1818
/// - `version`: The version of the export/import format.
1919
/// - `minifier`: An instance of `EditorKeyMinifier` used to convert keys.
20-
historyCompatibilityLayerInteraction({
20+
void historyCompatibilityLayerInteraction({
2121
required Map<String, dynamic> layerMap,
2222
required String version,
2323
required EditorKeyMinifier minifier,

lib/shared/utils/debounce.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ class Debounce {
5656
/// // Your function logic here.
5757
/// });
5858
/// ```
59-
call(void Function() callback) {
59+
void call(void Function() callback) {
6060
_timer?.cancel();
6161
_timer = Timer(delay, callback);
6262
}
6363

6464
/// Cancels the timer.
65-
cancel() {
65+
void cancel() {
6666
_timer?.cancel();
6767
}
6868

@@ -76,7 +76,7 @@ class Debounce {
7676
/// // Dispose of the debounce timer when no longer needed.
7777
/// debounce.dispose();
7878
/// ```
79-
dispose() {
79+
void dispose() {
8080
_timer?.cancel();
8181
}
8282
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: pro_image_editor
22
description: "A Flutter image editor: Seamlessly enhance your images with user-friendly editing features."
3-
version: 10.5.2
3+
version: 10.5.3
44
homepage: https://github.com/hm21/pro_image_editor/
55
repository: https://github.com/hm21/pro_image_editor/
66
documentation: https://github.com/hm21/pro_image_editor/

0 commit comments

Comments
 (0)