ZetaTopAppBar.centered constructor

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

Creates a ZetaTopAppBar with centered title.

Implementation

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