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. Widget? leading,
  8. bool automaticallyImplyLeading = true,
  9. List<Widget>? actions,
  10. bool centerTitle = true,
})

Creates a title bar in the MacosScaffold.

The height of the TitleBar can be changed with height.

Implementation

const TitleBar({
  Key? key,
  this.height = kTitleBarHeight,
  this.alignment = Alignment.center,
  this.title,
  this.padding = const EdgeInsets.all(8),
  this.decoration,
  this.leading,
  this.automaticallyImplyLeading = true,
  this.actions,
  this.centerTitle = true,
}) : super(key: key);