ZetaTopAppBar.centered constructor

const ZetaTopAppBar.centered(
  1. {List<Widget>? actions,
  2. bool automaticallyImplyLeading = true,
  3. AppBarSearchController? searchController,
  4. Widget? leading,
  5. Widget? title,
  6. TextStyle? titleTextStyle,
  7. void onSearch(
    1. String
    )?,
  8. String? searchHintText = 'Search',
  9. VoidCallback? onSearchMicrophoneIconPressed,
  10. Key? key}
)

Creates a ZetaTopAppBar with centered title.

Implementation

const ZetaTopAppBar.centered({
  this.actions,
  this.automaticallyImplyLeading = true,
  this.searchController,
  this.leading,
  this.title,
  this.titleTextStyle,
  this.onSearch,
  this.searchHintText = 'Search',
  this.onSearchMicrophoneIconPressed,
  super.key,
})  : type = ZetaTopAppBarType.centeredTitle,
      shrinks = false;