diff --git a/lib/canvas/drawing_page.dart b/lib/canvas/drawing_page.dart index 1014b10..b0e7cbb 100644 --- a/lib/canvas/drawing_page.dart +++ b/lib/canvas/drawing_page.dart @@ -53,7 +53,7 @@ class _DrawingPageState extends State { } double _calcTiltedWidth(double baseWidth, double tilt) { - if(tilt == .0) return baseWidth; + if (tilt == .0) return baseWidth; return baseWidth * tilt; } @@ -70,7 +70,6 @@ class _DrawingPageState extends State { alpha /= (2 * pi * 2); alpha += .5; - double thickness = basetickness * alpha; return thickness; } @@ -119,8 +118,8 @@ class _DrawingPageState extends State { double newWidth = _calcTiltedWidth(5.0, event.tilt); if (_strokes.last.points.length > 1) { - newWidth = _calcAngleDependentWidth( - pts.last, pts[pts.length - 2], newWidth); + newWidth = + _calcAngleDependentWidth(pts.last, pts[pts.length - 2], newWidth); } setState(() {