flame_component_screenshot 1.0.0 copy "flame_component_screenshot: ^1.0.0" to clipboard
flame_component_screenshot: ^1.0.0 copied to clipboard

A utility to render and capture Flame components as images or PNG files for use in Flutter apps or local storage.

flame_component_screenshot #

A Flutter + Flame utility package to render any Flame PositionComponent to an Image, PNG bytes, or local file path.

Features #

  • Render Flame components offscreen
  • Capture as ui.Image, Uint8List, Flutter Image.memory, or PNG to disk
  • Custom background color, pixel ratio, and Flutter image options

Installation #

dependencies:
  flame_component_screenshot: ^1.0.0

final uiImage = await FlameComponentScreenshot.renderToImage(
  component: myComponent,
  size: Vector2(300, 300),
);
1
likes
0
points
46
downloads

Publisher

unverified uploader

Weekly Downloads

A utility to render and capture Flame components as images or PNG files for use in Flutter apps or local storage.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flame, flutter, path_provider

More

Packages that depend on flame_component_screenshot