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
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.
50Compare
Works with
Packages commonly used together with titlebar_buttons: ones it builds on, ones built on it, and its own family.
- dbustitlebar_buttons depends on itNative Dart D-Bus client for Linux and Windows.
- flutter_svgtitlebar_buttons depends on itRenders Scalable Vector Graphics (SVG 1.1) and precompiled vector graphics in Flutter.
- material_uititlebar_buttons depends on itOfficial Flutter Material UI library implementing Google’s Material Design system.
- gsettingstitlebar_buttons depends on itClient to access GSettings database for storing user preferences on Linux.
- change_casetitlebar_buttons depends on itExtension on String to convert between many common case styles