TitleBar constructor
const
TitleBar({
- Key? key,
- double height = kTitleBarHeight,
- Alignment alignment = Alignment.center,
- Widget? title,
- EdgeInsets padding = const EdgeInsets.all(8),
- BoxDecoration? decoration,
- bool centerTitle = true,
- Color? dividerColor,
Creates a title bar in the MacosWindow.
The title bar resides at the top of a window and includes options for closing, minimizing, and zooming (or expanding to full-screen mode) the app window.
Most title bars display just the app's name or the filename.
The height of the TitleBar can be changed with height.
Implementation
const TitleBar({
super.key,
this.height = kTitleBarHeight,
this.alignment = Alignment.center,
this.title,
this.padding = const EdgeInsets.all(8),
this.decoration,
this.centerTitle = true,
this.dividerColor,
});