ZetaTopAppBar.centered constructor
- Key? key,
- bool? rounded,
- List<
Widget> actions = const [], - bool automaticallyImplyLeading = true,
- Widget? leading,
- Widget? title,
- TextStyle? titleTextStyle,
- @Deprecated('Use ZetaTopAppBar.search instead. ' 'Deprecated as of 0.16.0') ValueChanged<
String> ? onSearch, - @Deprecated('Use ZetaTopAppBar.search instead. ' 'Deprecated as of 0.16.0') String? searchHintText,
- @Deprecated('Use ZetaTopAppBar.search instead. ' 'Deprecated as of 0.16.0') ZetaSearchController? searchController,
- @Deprecated('Use ZetaTopAppBar.search instead. ' 'Deprecated as of 0.16.0') VoidCallback? onSearchMicrophoneIconPressed,
Creates a ZetaTopAppBar with centered title.
Implementation
const ZetaTopAppBar.centered({
super.key,
super.rounded,
this.actions = const [],
this.automaticallyImplyLeading = true,
this.leading,
this.title,
this.titleTextStyle,
@Deprecated('Use ZetaTopAppBar.search instead. ' 'Deprecated as of 0.16.0') ValueChanged<String>? onSearch,
@Deprecated('Use ZetaTopAppBar.search instead. ' 'Deprecated as of 0.16.0') String? searchHintText,
@Deprecated('Use ZetaTopAppBar.search instead. ' 'Deprecated as of 0.16.0') ZetaSearchController? searchController,
@Deprecated('Use ZetaTopAppBar.search instead. ' 'Deprecated as of 0.16.0')
VoidCallback? onSearchMicrophoneIconPressed,
}) : type = ZetaTopAppBarType.centered,
onSearch = null,
searchHintText = null,
searchController = null,
onSearchMicrophoneIconPressed = null,
clearSemanticLabel = null,
searchBackSemanticLabel = null,
microphoneSemanticLabel = null,
searchSemanticLabel = null,
shrinks = false;