Pythagoras tree: Difference between revisions

m
→‎Drawing in Flutter: mini refactoring
m (→‎Dart: renaming)
m (→‎Drawing in Flutter: mini refactoring)
Line 478:
Widget build(BuildContext context) {
return FittedBox(
child: ContainerCustomPaint(
colorsize: Colors.whiteconst Size(2360, 1580),
widthpainter: 2360TreePainter(),
height: 1580,
child: CustomPaint(painter: TreePainter()),
),
);
Line 492 ⟶ 490:
void paint(Canvas canvas, Size size) {
canvas.translate(size.width / 2, size.height);
canvas.drawColor(Colors.white, BlendMode.src);
final stroke = Paint()
..style = PaintingStyle.stroke
106

edits