Skip to content
pubscout

titlebar_buttons

2.0.0, released 5 days ago by prateek.sunal.in

Provides native-looking titlebar buttons for Windows, Linux, and macOS.

Uses material_ui
$ flutter pub add titlebar_buttons
Source repository

What it does

A Flutter package that supplies customizable close, minimize, and maximize buttons styled after various native operating system themes (such as Windows, Linux, and macOS). It supports auto-detection of the theme or manual selection via a property.

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

Use it when

  • You are building a desktop application with custom window decorations.
  • You need native-looking window control buttons for Windows, Linux, and macOS.

Skip it when

  • You are building strictly for mobile platforms (Android, iOS) where desktop titlebar buttons are irrelevant.
  • You prefer using standard default platform window frames without custom titlebars.

Strengths

  • Provides native-looking buttons for multiple platforms (Windows, Linux, macOS).
  • Easy to implement with explicit decorated button widgets like DecoratedMinimizeButton.

Weaknesses

  • Limited documentation outside basic README examples.
  • Relies on system gsettings/dbus configuration dependencies which might behave differently across specific Linux desktop environments.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
5

not documented

DecoratedMinimizeButton(
    type: ThemeType.yaru,
    onPressed: () {},
);

Alternatives

Packages that do the same job and could replace titlebar_buttons.

  • bitsdojo_window

    Create custom desktop windows and handle window operations on Windows, macOS, and Linux.

Works with

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