Skip to content

Commit

Permalink
analysis fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AdnanKhan45 committed Apr 18, 2024
1 parent 4587540 commit 1690695
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions lib/src/utils/matrix_gesture_detector.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@ class MatrixGestureDetectorState extends State<MatrixGestureDetector> {
);
}

_ValueUpdater<Offset> translationUpdater = _ValueUpdater(
ValueUpdater<Offset> translationUpdater = ValueUpdater(
value: Offset.zero,
onUpdate: (oldVal, newVal) => newVal - oldVal,
);
_ValueUpdater<double> scaleUpdater = _ValueUpdater(
ValueUpdater<double> scaleUpdater = ValueUpdater(
value: 1.0,
onUpdate: (oldVal, newVal) => newVal / oldVal,
);
_ValueUpdater<double> rotationUpdater = _ValueUpdater(
ValueUpdater<double> rotationUpdater = ValueUpdater(
value: 0.0,
onUpdate: (oldVal, newVal) => newVal - oldVal,
);
Expand Down Expand Up @@ -221,13 +221,13 @@ class MatrixGestureDetectorState extends State<MatrixGestureDetector> {
}
}

typedef _OnUpdate<T> = T Function(T oldValue, T newValue);
typedef OnUpdate<T> = T Function(T oldValue, T newValue);

class _ValueUpdater<T> {
final _OnUpdate<T> onUpdate;
class ValueUpdater<T> {
final OnUpdate<T> onUpdate;
T value;

_ValueUpdater({
ValueUpdater({
required this.value,
required this.onUpdate,
});
Expand Down
4 changes: 2 additions & 2 deletions lib/src/views/main_control_views/filters_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import 'package:flutter_story_editor/src/theme/style.dart';

class FiltersView extends StatefulWidget {

List<List<double>> selectedFilters = [];
final List<List<double>> selectedFilters;
final List<File>? selectedFiles;
final int currentPageIndex;
final Function(List<double>) onFilterChange;

FiltersView({super.key, this.selectedFilters = const [], this.selectedFiles, required this.currentPageIndex, required this.onFilterChange});
const FiltersView({super.key, required this.selectedFilters, this.selectedFiles, required this.currentPageIndex, required this.onFilterChange});

@override
State<FiltersView> createState() => _FiltersViewState();
Expand Down

0 comments on commit 1690695

Please sign in to comment.