toolbar method

PreferredSize toolbar(
  1. BuildContext context
)

Implementation

PreferredSize toolbar(BuildContext context) {
  return PreferredSize(
    child: AppBar(
      automaticallyImplyLeading: automaticallyImplyiLeading,
      centerTitle: true,
      leading: leading,
      actions: actions,
      elevation: elevation,
      title: Text(
        titleText ?? '',
      ),
      bottom: bottomWidget,
    ),
    preferredSize: Size.fromHeight(bottomWidget != null
        ? 140.0
        : titleText != null
            ? 56.0
            : 0.0),
  );
}