TitleBar constructor

const TitleBar({
  1. Key? key,
  2. double height = kTitleBarHeight,
  3. Alignment alignment = Alignment.center,
  4. Widget? title,
  5. EdgeInsets padding = const EdgeInsets.all(8),
  6. BoxDecoration? decoration,
  7. bool centerTitle = true,
  8. 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,
});