JsonAppBar constructor
JsonAppBar({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- List<
JsonWidgetData> ? actions, - IconThemeData? actionsIconTheme,
- bool automaticallyImplyLeading = true,
- Color? backgroundColor,
- JsonWidgetData? bottom,
- double bottomOpacity = 1.0,
- bool? centerTitle,
- Clip? clipBehavior,
- double? elevation,
- bool excludeHeaderSemantics = false,
- JsonWidgetData? flexibleSpace,
- bool forceMaterialTransparency = false,
- Color? foregroundColor,
- IconThemeData? iconTheme,
- JsonWidgetData? leading,
- double? leadingWidth,
- bool notificationPredicate() = defaultScrollNotificationPredicate,
- bool primary = true,
- double? scrolledUnderElevation,
- Color? shadowColor,
- ShapeBorder? shape,
- Color? surfaceTintColor,
- SystemUiOverlayStyle? systemOverlayStyle,
- JsonWidgetData? title,
- double? titleSpacing,
- TextStyle? titleTextStyle,
- double? toolbarHeight,
- double toolbarOpacity = 1.0,
- TextStyle? toolbarTextStyle,
Implementation
JsonAppBar({
Map<String, dynamic> args = const {},
JsonWidgetRegistry? registry,
this.actions,
this.actionsIconTheme,
this.automaticallyImplyLeading = true,
this.backgroundColor,
this.bottom,
this.bottomOpacity = 1.0,
this.centerTitle,
this.clipBehavior,
this.elevation,
this.excludeHeaderSemantics = false,
this.flexibleSpace,
this.forceMaterialTransparency = false,
this.foregroundColor,
this.iconTheme,
this.leading,
this.leadingWidth,
this.notificationPredicate = defaultScrollNotificationPredicate,
this.primary = true,
this.scrolledUnderElevation,
this.shadowColor,
this.shape,
this.surfaceTintColor,
this.systemOverlayStyle,
this.title,
this.titleSpacing,
this.titleTextStyle,
this.toolbarHeight,
this.toolbarOpacity = 1.0,
this.toolbarTextStyle,
}) : super(
jsonWidgetArgs: JsonAppBarBuilderModel.fromDynamic(
{
'actions': actions,
'actionsIconTheme': actionsIconTheme,
'automaticallyImplyLeading': automaticallyImplyLeading,
'backgroundColor': backgroundColor,
'bottom': bottom,
'bottomOpacity': bottomOpacity,
'centerTitle': centerTitle,
'clipBehavior': clipBehavior,
'elevation': elevation,
'excludeHeaderSemantics': excludeHeaderSemantics,
'flexibleSpace': flexibleSpace,
'forceMaterialTransparency': forceMaterialTransparency,
'foregroundColor': foregroundColor,
'iconTheme': iconTheme,
'leading': leading,
'leadingWidth': leadingWidth,
'notificationPredicate': notificationPredicate,
'primary': primary,
'scrolledUnderElevation': scrolledUnderElevation,
'shadowColor': shadowColor,
'shape': shape,
'surfaceTintColor': surfaceTintColor,
'systemOverlayStyle': systemOverlayStyle,
'title': title,
'titleSpacing': titleSpacing,
'titleTextStyle': titleTextStyle,
'toolbarHeight': toolbarHeight,
'toolbarOpacity': toolbarOpacity,
'toolbarTextStyle': toolbarTextStyle,
...args,
},
args: args,
registry: registry,
),
jsonWidgetBuilder: () => JsonAppBarBuilder(
args: JsonAppBarBuilderModel.fromDynamic(
{
'actions': actions,
'actionsIconTheme': actionsIconTheme,
'automaticallyImplyLeading': automaticallyImplyLeading,
'backgroundColor': backgroundColor,
'bottom': bottom,
'bottomOpacity': bottomOpacity,
'centerTitle': centerTitle,
'clipBehavior': clipBehavior,
'elevation': elevation,
'excludeHeaderSemantics': excludeHeaderSemantics,
'flexibleSpace': flexibleSpace,
'forceMaterialTransparency': forceMaterialTransparency,
'foregroundColor': foregroundColor,
'iconTheme': iconTheme,
'leading': leading,
'leadingWidth': leadingWidth,
'notificationPredicate': notificationPredicate,
'primary': primary,
'scrolledUnderElevation': scrolledUnderElevation,
'shadowColor': shadowColor,
'shape': shape,
'surfaceTintColor': surfaceTintColor,
'systemOverlayStyle': systemOverlayStyle,
'title': title,
'titleSpacing': titleSpacing,
'titleTextStyle': titleTextStyle,
'toolbarHeight': toolbarHeight,
'toolbarOpacity': toolbarOpacity,
'toolbarTextStyle': toolbarTextStyle,
...args,
},
args: args,
registry: registry,
),
),
jsonWidgetType: JsonAppBarBuilder.kType,
);