wriggle 2.1.0 copy "wriggle: ^2.1.0" to clipboard
wriggle: ^2.1.0 copied to clipboard

Text-based UI framework for pure command-line Dart

Wriggle is a text-based UI framework for command-line Dart. It uses a nested component system that should be familiar to Flutter users.

Features #

Selling points include:

  • Slow
  • Inefficient
  • Cute!

Getting started #

Usage #

Run the top-level function "runApp", providing a Component as your application. Extend the Component class and override the "build" method, returning a tree of nested Renderable objects.

void main(List<String> arguments) {
  runApp(MyApp());
}

class MyApp extends Component {
  @override
  Renderable build(WriggleContext context) {
    return const Center(child: Text('Hello world!'));
  }
}

State in Wriggle is managed using the StatefulComponent

Additional information #

For a working example, see the project I created Wriggle for: Morning Princess, a text-based character sheet for D&D 5e (https://codeberg.org/imperialoctopus/morning-princess/).

Credits #

3
likes
90
points
117
downloads

Publisher

verified publisherimperialoctopus.com

Weekly Downloads

Text-based UI framework for pure command-line Dart

Repository

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

app_dirs, characters, collection, dart_synthizer, ffi, freezed_annotation, hotreloader, image, json_annotation, path, riverpod, sdl3, system_info2

More

Packages that depend on wriggle