fledge_ui 0.3.1 copy "fledge_ui: ^0.3.1" to clipboard
fledge_ui: ^0.3.1 copied to clipboard

Retained-mode game HUD/UI for Fledge — anchor-based layout, containers, text, images, and solid panels rendered on top of the sprite pipeline.

fledge_ui #

Retained-mode game HUD/UI and generic placement mode for Fledge — anchor-based layout, containers, text, images, solid panels painted on top of the sprite pipeline, plus a PlacementCorePlugin that runs Stardew-adjacent "drop-a-hotbar-item-into-the-world" flows (mode state, validator seam, world-space ghost preview).

pub package

Installation #

dependencies:
  fledge_ui: ^0.2.1

Quick Start #

import 'package:fledge_camera_2d/fledge_camera_2d.dart';
import 'package:fledge_ecs/fledge_ecs.dart';
import 'package:fledge_render_2d/fledge_render_2d.dart';
import 'package:fledge_ui/fledge_ui.dart';

final app = App()
  ..addPlugin(RenderPlugin())
  ..addPlugin(const CameraPlugin())
  ..addPlugin(const UiPlugin());

// Score display anchored to the top-left corner.
app.world.spawn()
  ..insert(const UiNode())
  ..insert(const UiAnchorComponent(UiAnchor.topLeft))
  ..insert(const UiOffset(x: 12, y: 12))
  ..insert(UiText(text: 'Score: 0', fontSize: 20));

// Wrap the render view with FledgeUiOverlay.
runApp(FledgeUiOverlay(app: app, child: FledgeRenderView(app: app)));

Documentation #

See the Fledge documentation site for guides, API reference, and advanced usage.

License #

Apache 2.0 - See LICENSE for details.

0
likes
160
points
456
downloads

Documentation

API reference

Publisher

verified publisherfledge-framework.dev

Weekly Downloads

Retained-mode game HUD/UI for Fledge — anchor-based layout, containers, text, images, and solid panels rendered on top of the sprite pipeline.

Homepage
Repository (GitHub)
View/report issues
Contributing

Topics

#ecs #game-engine #ui #hud #flutter-games

License

Apache-2.0 (license)

Dependencies

fledge_assets, fledge_camera_2d, fledge_ecs, fledge_render_2d, flutter, meta, vector_math

More

Packages that depend on fledge_ui