xAppBar method

PreferredSizeWidget xAppBar (
  1. {Widget leading,
  2. bool automaticallyImplyLeading,
  3. List<Widget> actions,
  4. Gradient gradient,
  5. PreferredSizeWidget bottom,
  6. double elevation,
  7. ShapeBorder shape,
  8. Brightness brightness,
  9. IconThemeData iconTheme,
  10. IconThemeData actionsIconTheme,
  11. TextTheme textTheme,
  12. bool primary,
  13. bool centerTitle,
  14. double titleSpacing,
  15. double toolbarOpacity,
  16. double bottomOpacity,
  17. DecorationImage image,
  18. @override Size preferredSize,
  19. Color backgroundColor,
  20. Key key}
)

Implementation

PreferredSizeWidget xAppBar(
    {final Widget leading,
    final bool automaticallyImplyLeading,
    final List<Widget> actions,
    final Gradient gradient,
    final PreferredSizeWidget bottom,
    final double elevation,
    final ShapeBorder shape,
    final Brightness brightness,
    final IconThemeData iconTheme,
    final IconThemeData actionsIconTheme,
    final TextTheme textTheme,
    final bool primary,
    final bool centerTitle,
    final double titleSpacing,
    final double toolbarOpacity,
    final double bottomOpacity,
    final DecorationImage image,
    @override final Size preferredSize,
    Color backgroundColor,
    final Key key}) {
  return AppbarGadient(
    backgroundColor: backgroundColor,
    actions: actions,
    automaticallyImplyLeading: automaticallyImplyLeading ?? true,
    actionsIconTheme: actionsIconTheme,
    centerTitle: centerTitle,
    title: this,
    bottom: bottom,
    bottomOpacity: bottomOpacity ?? 1.0,
    toolbarOpacity: toolbarOpacity ?? 1.0,
    titleSpacing: titleSpacing ?? NavigationToolbar.kMiddleSpacing,
    iconTheme: iconTheme,
    brightness: brightness,
    elevation: elevation,
    leading: leading,
    primary: primary ?? true,
    shape: shape,
    textTheme: textTheme,
    gradient: gradient,
    image: image,
    key: key,
  );
}