File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -7,12 +7,12 @@ import 'package:saber/components/canvas/inner_canvas.dart';
77import 'package:saber/data/editor/editor_core_info.dart' ;
88import 'package:saber/data/editor/page.dart' ;
99import 'package:saber/data/tools/_tool.dart' ;
10- import 'package:saber/data/tools/highlighter.dart' ;
1110import 'package:saber/data/tools/eraser.dart' ;
12- import 'package:saber/data/tools/pencil .dart' ;
11+ import 'package:saber/data/tools/highlighter .dart' ;
1312import 'package:saber/data/tools/laser_pointer.dart' ;
14- import 'package:saber/data/tools/select.dart' ;
1513import 'package:saber/data/tools/pen.dart' ;
14+ import 'package:saber/data/tools/pencil.dart' ;
15+ import 'package:saber/data/tools/select.dart' ;
1616
1717class 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
You can’t perform that action at this time.
0 commit comments