AppbarGadient constructor

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

Implementation

AppbarGadient(
    {Key key,
    this.backgroundColor,
    this.leading,
    this.automaticallyImplyLeading = true,
    this.title,
    this.actions,
    this.gradient,
    this.bottom,
    this.elevation,
    this.shape,
    this.brightness,
    this.iconTheme,
    this.actionsIconTheme,
    this.textTheme,
    this.primary = true,
    this.centerTitle,
    this.titleSpacing = NavigationToolbar.kMiddleSpacing,
    this.toolbarOpacity = 1.0,
    this.bottomOpacity = 1.0,
    this.image})
    : assert(automaticallyImplyLeading != null),
      assert(elevation == null || elevation >= 0.0),
      assert(primary != null),
      assert(titleSpacing != null),
      assert(toolbarOpacity != null),
      assert(bottomOpacity != null),
      preferredSize = Size.fromHeight(
          kToolbarHeight + (bottom?.preferredSize?.height ?? 0.0)),
      super(key: key);