bones_ui
3.1.11, released 2 weeks ago by an unverified publisher
An intuitive and user-friendly Web User Interface framework for Dart.
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.
95Compare - shadcn_ui
Flutter port of the shadcn/ui design system with customizable components.
95Compare - forui
Minimalistic Flutter widgets inspired by shadcn/ui for desktop and touch devices.
93Compare - shadcn_flutter
A cohesive shadcn/ui ecosystem for Flutter with components, theming, and zero Material dependency.
87Compare
Works with
Packages commonly used together with bones_ui: ones it builds on, ones built on it, and its own family.
- archivebones_ui depends on itEncodes and decodes archive and compression formats such as zip, tar, gzip, and zlib.
- yamlbones_ui depends on itA Dart library for parsing YAML documents into Dart data structures.
- stack_tracebones_ui depends on itProvides parsing, inspection, and readable formatting of Dart stack traces.
- webbones_ui depends on itLightweight bindings for browser APIs via JS interop
- test_apibones_ui depends on itThe user facing API for structuring Dart tests and checking expectations.
- testbones_ui depends on itA full featured library for writing and running Dart tests across platforms.
- argsbones_ui depends on itLibrary for parsing raw command-line arguments into options and values using GNU and POSIX styles.
- intlbones_ui depends on itA Dart library for internationalization and localization, providing message translation, plural/gender handling, and date/number formatting.