Search packages, repositories and app categories

Package detailsv2.3.2

stagexl

A fast and universal 2D rendering engine for HTML5 and Dart.

Web
30-day downloads
271
Likes
40
Pub points
125

Install package

flutter pub add stagexl

Package Overview

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

StageXL is a high-performance 2D rendering engine designed for web applications using Dart and HTML5. It provides a flexible, stage-based architecture ideal for creating interactive graphics, animations, and games. Built with efficiency in mind, StageXL supports vector graphics, bitmap handling, text rendering, and advanced effects like filters and shaders. Its API is inspired by Flash/ActionScript, making it familiar to developers with prior experience in that ecosystem. The engine runs entirely in the browser, leveraging WebGL and Canvas for optimal performance.

Use cases

  • 2D game development
  • interactive web animations
  • vector graphics rendering
  • browser-based visual applications
  • real-time graphics effects

Key features

  • High-performance rendering
  • WebGL and Canvas support
  • Flash-like API
  • Vector and bitmap graphics
  • Built-in animation system
  • Shader and filter support

Suitable for

  • Dart developers targeting web platforms
  • Game creators seeking lightweight 2D engines
  • Interactive UI designers
  • Educational or prototyping projects

Considerations

  • Limited native mobile support
  • No Flutter desktop or mobile integration
  • Primarily web-focused
  • Requires understanding of 2D graphics concepts
  • Not maintained as actively as other Flutter packages

Original README

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

StageXL

StageXL is a fast and universal 2D rendering engine for HTML5 and Dart. It provides a wide range of features for 2D games and other graphically rich content. The WebGL based engine is highly optimized to reduce the number of draw calls sent to the GPU and therefore delivers top-class performance. The automatic fallback to a Canvas2D based engine guarantees compatibility with older browsers or legacy hardware.

Some of the features provided by StageXL are: texture atlas support, draw call batching, pixel masking, pixel filters, pixel blending, texture filtering, hierarchical display list, sprite sheet animations, rich animation framework, audio and video support, interaction events, 3D transformations of 2D objects, resource management, text rendering and many other features as well as extensibility for even more features.

Extension Libraries

StageXL provides a rich set of built-in features. Even more advanced use cases may require an extension library with a specialised set of features. The number of extension libraries is growing over time, here is a list of the most popular StageXL extension libraries.

Getting Help

The easiest way to get started or to accomplish a task is to ask questions. We are actively tracking the following websites and answer questions as fast as possible. We would like to get more FAQs on StackOverflow to help other developers to find answers quickly, therefore it would be great to get your questions on StackOverflow.

Examples

We are working on more examples to covering a wider range of use cases. Please take a look at the StageXL samples repository for our ongoing work. Don't hesitate to send example requests that would help you to learn about a particular feature.

Support StageXL

We encourage anyone to send in Pull Requests or issues that they find. We do our best to look at them as soon as we can.

Roadmap

Besides improving our existing features and improving performance as much as possible, we are always thinking about new features we want to add next. Please send us your ideas and requests to make those things a reality you care about most. Some of the things we will tackle in the near future are:

  • Support for Flutter (This is happening on a separate repo)
  • A new StageXL homepage with more articles / blog posts.
  • Changing functions from positional parameters to named parameters.
  • Adding ability use Web Workers.

Adobe Flash heritage

StageXL started as an easy migration path for Adobe Flash developers and their products to HTML5. Therefore StageXL provides the same display list API you may have used in Flash for many years. Furthermore the Dart programming language is easy to use for everyone who is familiar with ActionScript.

Browser Support

Chrome Safari Firefox Edge
v53+ v10+ v63+ v79+

Some features only work on newer browsers such as WebGL, but we intend to have fallbacks for most features.

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.