JsonScaffold constructor
JsonScaffold({
- Map<
String, dynamic> args = const {}, - JsonWidgetRegistry? registry,
- JsonWidgetData? appBar,
- Color? backgroundColor,
- JsonWidgetData? body,
- JsonWidgetData? bottomSheet,
- JsonWidgetData? drawer,
- DragStartBehavior drawerDragStartBehavior = DragStartBehavior.start,
- double? drawerEdgeDragWidth,
- bool drawerEnableOpenDragGesture = true,
- Color? drawerScrimColor,
- JsonWidgetData? endDrawer,
- bool endDrawerEnableOpenDragGesture = true,
- bool extendBody = false,
- bool extendBodyBehindAppBar = false,
- JsonWidgetData? floatingActionButton,
- FloatingActionButtonAnimator? floatingActionButtonAnimator,
- FloatingActionButtonLocation? floatingActionButtonLocation,
- void onDrawerChanged()?,
- void onEndDrawerChanged()?,
- bool primary = true,
- bool? resizeToAvoidBottomInset,
- String? restorationId,
Implementation
JsonScaffold({
Map<String, dynamic> args = const {},
JsonWidgetRegistry? registry,
this.appBar,
this.backgroundColor,
this.body,
this.bottomNavigationBar,
this.bottomSheet,
this.drawer,
this.drawerDragStartBehavior = DragStartBehavior.start,
this.drawerEdgeDragWidth,
this.drawerEnableOpenDragGesture = true,
this.drawerScrimColor,
this.endDrawer,
this.endDrawerEnableOpenDragGesture = true,
this.extendBody = false,
this.extendBodyBehindAppBar = false,
this.floatingActionButton,
this.floatingActionButtonAnimator,
this.floatingActionButtonLocation,
this.onDrawerChanged,
this.onEndDrawerChanged,
this.persistentFooterAlignment = AlignmentDirectional.centerEnd,
this.persistentFooterButtons,
this.primary = true,
this.resizeToAvoidBottomInset,
this.restorationId,
}) : super(
jsonWidgetArgs: JsonScaffoldBuilderModel.fromDynamic(
{
'appBar': appBar,
'backgroundColor': backgroundColor,
'body': body,
'bottomNavigationBar': bottomNavigationBar,
'bottomSheet': bottomSheet,
'drawer': drawer,
'drawerDragStartBehavior': drawerDragStartBehavior,
'drawerEdgeDragWidth': drawerEdgeDragWidth,
'drawerEnableOpenDragGesture': drawerEnableOpenDragGesture,
'drawerScrimColor': drawerScrimColor,
'endDrawer': endDrawer,
'endDrawerEnableOpenDragGesture': endDrawerEnableOpenDragGesture,
'extendBody': extendBody,
'extendBodyBehindAppBar': extendBodyBehindAppBar,
'floatingActionButton': floatingActionButton,
'floatingActionButtonAnimator': floatingActionButtonAnimator,
'floatingActionButtonLocation': floatingActionButtonLocation,
'onDrawerChanged': onDrawerChanged,
'onEndDrawerChanged': onEndDrawerChanged,
'persistentFooterAlignment': persistentFooterAlignment,
'persistentFooterButtons': persistentFooterButtons,
'primary': primary,
'resizeToAvoidBottomInset': resizeToAvoidBottomInset,
'restorationId': restorationId,
...args,
},
args: args,
registry: registry,
),
jsonWidgetBuilder: () => JsonScaffoldBuilder(
args: JsonScaffoldBuilderModel.fromDynamic(
{
'appBar': appBar,
'backgroundColor': backgroundColor,
'body': body,
'bottomNavigationBar': bottomNavigationBar,
'bottomSheet': bottomSheet,
'drawer': drawer,
'drawerDragStartBehavior': drawerDragStartBehavior,
'drawerEdgeDragWidth': drawerEdgeDragWidth,
'drawerEnableOpenDragGesture': drawerEnableOpenDragGesture,
'drawerScrimColor': drawerScrimColor,
'endDrawer': endDrawer,
'endDrawerEnableOpenDragGesture':
endDrawerEnableOpenDragGesture,
'extendBody': extendBody,
'extendBodyBehindAppBar': extendBodyBehindAppBar,
'floatingActionButton': floatingActionButton,
'floatingActionButtonAnimator': floatingActionButtonAnimator,
'floatingActionButtonLocation': floatingActionButtonLocation,
'onDrawerChanged': onDrawerChanged,
'onEndDrawerChanged': onEndDrawerChanged,
'persistentFooterAlignment': persistentFooterAlignment,
'persistentFooterButtons': persistentFooterButtons,
'primary': primary,
'resizeToAvoidBottomInset': resizeToAvoidBottomInset,
'restorationId': restorationId,
...args,
},
args: args,
registry: registry,
),
),
jsonWidgetType: JsonScaffoldBuilder.kType,
);