Pen Settings


Babel is required to process package imports. If you need a different preprocessor remove all packages first.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                import 'dart:ui';

import 'package:flutter/material.dart';

/// drawing a point in the center of the screen
void main() {
    home: Scaffold(body: Board()),
    debugShowCheckedModeBanner: false,

final size = window.physicalSize / window.devicePixelRatio;

class Board extends StatelessWidget {
  Widget build(BuildContext context) => CustomPaint(
        size: size,
        painter: Painter(),

class Painter extends CustomPainter {
  static const radius = 10.0;

  static final fill = Paint()..color =;

  void paint(Canvas canvas, Size size) {
    canvas.drawCircle(, radius, fill);

  bool shouldRepaint(CustomPainter oldDelegate) => false;