Search packages, repositories and app categories

Package detailsv0.2.0

flutter_processing

A Flutter version of Processing.

AndroidiOSmacOSWindowsLinux
30-day downloads
107
Likes
70
Pub points
120

Install package

flutter pub add flutter_processing

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

Flutter Processing is a Flutter package that brings the creative coding capabilities of Processing to Flutter applications. It enables developers to create interactive graphics, animations, and visual art using a familiar Processing-like syntax within Flutter's cross-platform framework. Ideal for artists, educators, and developers interested in generative art, it supports real-time drawing and animation on Android, iOS, macOS, Windows, and Linux. The package integrates seamlessly with Flutter’s widget system while providing access to low-level canvas operations.

Use cases

  • Generative art applications
  • Interactive visualizations
  • Educational coding projects
  • Creative coding prototypes
  • Real-time animation demos

Key features

  • Processing-style syntax
  • Cross-platform canvas rendering
  • Real-time animation support
  • Integration with Flutter widgets
  • Support for touch and mouse input

Suitable for

  • Creative coders
  • Artists using code
  • Educators teaching programming
  • Developers building visual apps
  • Students learning interactive design

Considerations

  • Performance may vary on lower-end devices
  • Requires understanding of Processing concepts
  • Limited documentation compared to main Processing
  • Not ideal for complex UIs
  • Best suited for graphics-heavy, not data-driven apps

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

Flutter Processing

A Flutter port of Processing.

This project is not affiliated with the Processing project, or related organizations.

The goal of flutter_processing is to provide the same easy learning environment as Processing, but with the additional utility of a production-ready UI toolkit, called Flutter. With traditional Processing, there is minimal professional value in the underlying language. With flutter_processing, the underlying tool, Flutter, is sufficient for employment as an app UI developer. flutter_processing offers an educational tool and an employment opportunity all in one.

Want to see how this project was implemented? Nearly every change was recorded and published to the SuperDeclarative! channel on YouTube.

To see which Processing APIs have been ported to Flutter, see the API Checklist.


Do you get value from this package? Please consider supporting SuperDeclarative!


Getting Started

To play with some demos, clone this repository and run the example app!

To paint a canvas with a sketch in Flutter, the way you would in Processing, display a Processing widget and implement a Sketch.

void main() {
  runApp(
    MaterialApp(
      home: Processing(
        sketch: Sketch.simple(
          setup: (sketch) async {
            // TODO: do your typical Sketch setup
            //       stuff here. Call methods on
            //       the provided sketch object.
          },
          draw: (sketch) async {
            // TODO: do your typical Sketch drawing
            //       stuff here. Call methods on
            //       the provided sketch object.
          },
        ),
      ),
    ),
  );
}

To retain and access variables in your Sketch, or to implement a Sketch in a more traditional way, subclass Sketch:

void main() {
  runApp(
    MaterialApp(
      home: Processing(
        sketch: MySketch(),
      ),
    ),
  );
}

class MySketch extends Sketch {
  @override
  Future<void> setup() async {
    // TODO: do setup stuff here
  }

  @override
  Future<void> draw() async {
    // TODO: do drawing stuff here
  }
}

Get Involved

If you create anything cool, be sure to post it to Twitter and tag @SuprDeclarative and @FlutterDev!

If you need something implemented, or you find a bug, please checkout the Contributing Guide and then file an issue in the GitHub project.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.