Skip to content

Commit d6e96ce

Browse files
committed
PAINTROID-785 fix static analysis errors
1 parent 7f51df8 commit d6e96ce

File tree

7 files changed

+20
-10
lines changed

7 files changed

+20
-10
lines changed

lib/core/commands/command_implementation/graphic/line_command.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// ignore_for_file: must_be_immutable
2+
13
import 'dart:ui';
24

35
import 'package:freezed_annotation/freezed_annotation.dart';

lib/core/commands/command_implementation/graphic/shape/circle_shape_command.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// ignore_for_file: must_be_immutable
2+
13
import 'dart:ui';
24

35
import 'package:freezed_annotation/freezed_annotation.dart';

lib/core/commands/command_implementation/graphic/shape/square_shape_command.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// ignore_for_file: must_be_immutable
2+
13
import 'dart:ui';
24

35
import 'package:freezed_annotation/freezed_annotation.dart';

lib/core/commands/command_implementation/graphic/spray_command.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// ignore_for_file: must_be_immutable
2+
13
import 'dart:ui';
24

35
import 'package:freezed_annotation/freezed_annotation.dart';

lib/core/tools/line_tool/line_tool.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// ignore_for_file: must_be_immutable
2+
13
import 'dart:ui';
24

35
import 'package:equatable/equatable.dart';

lib/ui/theme/theme.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
library theme;
1+
library;
22

33
export 'data/custom_colors.dart';
44
export 'data/dark_paintroid_theme_data.dart';

test/widget/workspace_page/bottom_control_navigation_bar_test.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ void main() {
5050
await tester.pumpWidget(sut);
5151

5252
final bottomNavBarInteractions = BottomNavBarInteractions(tester);
53-
await bottomNavBarInteractions
54-
.selectTool(eraserToolData)
55-
.then((_) => _.checkActiveToolIconAndLabel(eraserToolData));
53+
await bottomNavBarInteractions.selectTool(eraserToolData).then(
54+
(bottomNavBarInteractions) => bottomNavBarInteractions
55+
.checkActiveToolIconAndLabel(eraserToolData));
5656

57-
await bottomNavBarInteractions
58-
.selectTool(brushToolData)
59-
.then((_) => _.checkActiveToolIconAndLabel(brushToolData));
57+
await bottomNavBarInteractions.selectTool(brushToolData).then(
58+
(bottomNavBarInteractions) => bottomNavBarInteractions
59+
.checkActiveToolIconAndLabel(brushToolData));
6060
});
6161
});
6262

@@ -180,9 +180,9 @@ void main() {
180180
await tester.pumpWidget(sut);
181181

182182
final bottomNavBarInteractions = BottomNavBarInteractions(tester);
183-
await bottomNavBarInteractions
184-
.selectColor(blueColor)
185-
.then((_) => _.checkActiveColor(blueColor));
183+
await bottomNavBarInteractions.selectColor(blueColor).then(
184+
(bottomNavBarInteractions) =>
185+
bottomNavBarInteractions.checkActiveColor(blueColor));
186186
});
187187
});
188188
}

0 commit comments

Comments
 (0)