appBar method

AppBar appBar({
  1. Key? key,
  2. Widget? leading,
  3. bool automaticallyImplyLeading = true,
  4. List<Widget>? actions,
  5. Widget? flexibleSpace,
  6. PreferredSizeWidget? bottom,
  7. double? elevation,
  8. double? scrolledUnderElevation,
  9. ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
  10. Color? shadowColor,
  11. Color? surfaceTintColor,
  12. ShapeBorder? shape,
  13. Color? bg,
  14. Color? fg,
  15. IconThemeData? iconTheme,
  16. IconThemeData? actionsIconTheme,
  17. bool primary = true,
  18. bool? centerTitle,
  19. bool excludeHeaderSemantics = false,
  20. double? titleSpacing,
  21. double toolbarOpacity = 1.0,
  22. double bottomOpacity = 1.0,
  23. double? toolbarHeight,
  24. double? leadingWidth,
  25. TextStyle? toolbarTextStyle,
  26. TextStyle? titleTextStyle,
  27. SystemUiOverlayStyle? systemOverlayStyle,
})

see AppBar

Implementation

AppBar appBar({
  Key? key,
  Widget? leading,
  bool automaticallyImplyLeading = true,
  List<Widget>? actions,
  Widget? flexibleSpace,
  PreferredSizeWidget? bottom,
  double? elevation,
  double? scrolledUnderElevation,
  ScrollNotificationPredicate notificationPredicate = defaultScrollNotificationPredicate,
  Color? shadowColor,
  Color? surfaceTintColor,
  ShapeBorder? shape,
  Color? bg,
  Color? fg,
  IconThemeData? iconTheme,
  IconThemeData? actionsIconTheme,
  bool primary = true,
  bool? centerTitle,
  bool excludeHeaderSemantics = false,
  double? titleSpacing,
  double toolbarOpacity = 1.0,
  double bottomOpacity = 1.0,
  double? toolbarHeight,
  double? leadingWidth,
  TextStyle? toolbarTextStyle,
  TextStyle? titleTextStyle,
  SystemUiOverlayStyle? systemOverlayStyle,
}) =>
    AppBar(
      key: key,
      leading: leading,
      title: this,
      automaticallyImplyLeading: automaticallyImplyLeading,
      actions: actions,
      flexibleSpace: flexibleSpace,
      bottom: bottom,
      elevation: elevation,
      scrolledUnderElevation: scrolledUnderElevation,
      notificationPredicate: notificationPredicate,
      shadowColor: shadowColor,
      surfaceTintColor: surfaceTintColor,
      shape: shape,
      backgroundColor: bg,
      foregroundColor: fg,
      iconTheme: iconTheme,
      actionsIconTheme: actionsIconTheme,
      primary: primary,
      centerTitle: centerTitle,
      excludeHeaderSemantics: excludeHeaderSemantics,
      titleSpacing: titleSpacing,
      toolbarOpacity: toolbarOpacity,
      bottomOpacity: bottomOpacity,
      toolbarHeight: toolbarHeight,
      leadingWidth: leadingWidth,
      toolbarTextStyle: toolbarTextStyle,
      titleTextStyle: titleTextStyle,
      systemOverlayStyle: systemOverlayStyle,
    );