FigmaScaffoldComponent constructor

const FigmaScaffoldComponent(
  1. String? bodyNodeName, {
  2. String? appBarNodeName,
  3. String? bottomBarNodeName,
  4. String? floatingActionButtonNodeName,
  5. List<NodeTransformer> appBarTransformers = const [],
  6. List<NodeTransformer> bodyTransformers = const [],
  7. List<NodeTransformer> bottomBarTransformers = const [],
  8. List<NodeTransformer> fabTransformers = const [],
  9. Color? backgroundColor,
  10. FloatingActionButtonLocation? floatingActionButtonLocation,
  11. Key? key,
})

Creates a FigmaScaffoldComponent.

The screenNodeName is required and represents the name of the container node in Figma that holds the entire screen design.

Other named parameters allow specifying which nodes should be treated as special parts of the Scaffold, and what transformers to apply to each.

Implementation

const FigmaScaffoldComponent(
  this.bodyNodeName, {
  this.appBarNodeName,
  this.bottomBarNodeName,
  this.floatingActionButtonNodeName,
  this.appBarTransformers = const [],
  this.bodyTransformers = const [],
  this.bottomBarTransformers = const [],
  this.fabTransformers = const [],
  this.backgroundColor,
  this.floatingActionButtonLocation,
  super.key,
});