Skip to content
pubscout

bones_ui

3.1.11, released 2 weeks ago by an unverified publisher

An intuitive and user-friendly Web User Interface framework for Dart.

WASM-ready
$ flutter pub add bones_ui
Source repository

What it does

Bones_UI provides a framework for building web user interfaces in Dart. It includes a CLI to create and serve projects, component rendering abstractions, routing capabilities, and built-in support for unit testing components in a browser environment.

AI-written summary of version 3.1.11, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to build web user interfaces using pure Dart.
  • You need an integrated CLI for project generation, serving, and testing.
  • You want support for defining component hierarchies and handling routing on the web.

Skip it when

  • You are building a Flutter application targeting mobile or desktop.
  • You prefer standard Flutter widgets over a dedicated web-first framework.

Strengths

  • Includes a dedicated CLI for scaffolding and managing projects.
  • Comes with testing utilities specifically designed for UI roots and routing.
  • Supports component-based structure for web apps in Dart.

Weaknesses

  • Limited primarily to web platform usage.
  • Smaller ecosystem and community compared to mainstream UI frameworks.

Setup

Kind
Pure Dart
Effort
Medium
Code generation
No
Direct dependencies
28

Activate the CLI globally using 'dart pub global activate bones_ui' to create and manage projects.

import 'dart:html';

import 'package:bones_ui/bones_ui_kit.dart';

void main() async {
  var root = MyUIRoot(querySelector('#output'));
  root.initialize();
}

class MyUIRoot extends UIRoot {
  MyUIRoot(Element? rootContainer) : super(rootContainer);

  @override
  UIComponent renderMenu() => MyMenu(content);

  @override
  UIComponent renderContent() => MyHome(content);
}

class MyMenu extends UIComponent {
  MyMenu(Element parent) : super(parent);
  @override
  dynamic render() => $div(content: 'Menu');
}

class MyHome extends UIComponent {
  MyHome(Element parent) : super(parent);
  @override
  dynamic render() => $div(content: 'Home');
}

Alternatives

Packages that do the same job and could replace bones_ui.

  • fluent_ui

    Implements Microsoft's Windows User Interface (Fluent UI) in Flutter.

  • shadcn_ui

    Flutter port of the shadcn/ui design system with customizable components.

  • forui

    Minimalistic Flutter widgets inspired by shadcn/ui for desktop and touch devices.

  • shadcn_flutter

    A cohesive shadcn/ui ecosystem for Flutter with components, theming, and zero Material dependency.

Works with

Packages commonly used together with bones_ui: ones it builds on, ones built on it, and its own family.