Skip to content
pubscout

naked_ui

1.5.0, released 2 weeks ago by leoafarias.com

Behavior-first headless UI components for Flutter that separate state from presentation.

WASM-ready
$ flutter pub add naked_ui
Source repository

What it does

Provides headless, unstyled UI widgets with built-in accessibility, semantics, and observable states like hover, focus, and drag. Allows developers to build custom interfaces with complete design control.

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

Use it when

  • You need complete design control over UI components without pre-styled Material or Cupertino baggage.
  • You need robust accessibility semantics and observable interaction states for custom widgets.
  • You want standard behaviors like comboboxes, menus, dialogs, and sliders with custom styling.

Skip it when

  • You want a ready-to-use UI kit with out-of-the-box visual styling like Material Design.
  • You do not need headless widgets and prefer standard pre-styled components.

Strengths

  • Complete separation of state and presentation for total design control.
  • Built-in accessibility semantics and screen reader support.
  • Rich set of supported components including menus, dialogs, sliders, and text fields.

Weaknesses

  • Requires writing all visual styling and builders manually from scratch.
  • Does not provide its own design system or visual themes.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
NakedButton(
  onPressed: () => print('Clicked'),
  builder: (context, state, child) => Container(
    padding: const EdgeInsets.all(12),
    color: state.when(
      pressed: Colors.blue.shade900,
      hovered: Colors.blue.shade700,
      focused: Colors.blue.shade600,
      orElse: Colors.blue,
    ),
    child: const Text('Click Me', style: TextStyle(color: Colors.white)),
  ),
)

Alternatives

Packages that do the same job and could replace naked_ui.

  • nocterm

    Framework for building terminal user interfaces with Flutter‑like components and hot reload.

Works with

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