Skip to content

Commit ac04b9b

Browse files
committed
fix: make linter happy
1 parent ae94dc6 commit ac04b9b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/components/canvas/canvas.dart

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ import 'package:saber/components/canvas/inner_canvas.dart';
77
import 'package:saber/data/editor/editor_core_info.dart';
88
import 'package:saber/data/editor/page.dart';
99
import 'package:saber/data/tools/_tool.dart';
10-
import 'package:saber/data/tools/highlighter.dart';
1110
import 'package:saber/data/tools/eraser.dart';
12-
import 'package:saber/data/tools/pencil.dart';
11+
import 'package:saber/data/tools/highlighter.dart';
1312
import 'package:saber/data/tools/laser_pointer.dart';
14-
import 'package:saber/data/tools/select.dart';
1513
import 'package:saber/data/tools/pen.dart';
14+
import 'package:saber/data/tools/pencil.dart';
15+
import 'package:saber/data/tools/select.dart';
1616

1717
class Canvas extends StatelessWidget {
1818
const Canvas({
@@ -60,7 +60,7 @@ class Canvas extends StatelessWidget {
6060
} else if (currentTool is LaserPointer) {
6161
return 1;
6262
} else if (currentTool is Pen) {
63-
if ((currentTool as Pen).isPressureEnabled()) {
63+
if (currentTool.isPressureEnabled()) {
6464
return 2;
6565
} else {
6666
return 1;
@@ -86,7 +86,7 @@ class Canvas extends StatelessWidget {
8686
return baseSize * 2;
8787
}
8888
} else {
89-
return 3.0;
89+
return 3;
9090
}
9191
}
9292

0 commit comments

Comments
 (0)