Pythagoras tree: Difference between revisions

m
Line 470:
<syntaxhighlight lang="dart">import 'package:flutter/material.dart';
 
void main() => runApp(const MainAppFittedBox());
child: CustomPaint(painter: TreePainter(), size: const Size(2400, 1600))));
 
class MainApp extends StatelessWidget {
const MainApp({super.key});
 
@override
Widget build(BuildContext context) => FittedBox(
child: CustomPaint(painter: TreePainter(), size: const Size(2400, 1600)));
}
 
class TreePainter extends CustomPainter {
106

edits