discontinuedPackage jet_cad_floor_plan has been discontinued and replaced by jet_cad_2d_plan.

PlannerView constructor

const PlannerView({
  1. Key? key,
  2. required DraftDocument document,
  3. required SpatialIndex index,
  4. required StyleResolver resolver,
  5. required CameraController camera,
  6. required PageNotifier page,
  7. required GesturePolicy policy,
  8. required SelectionController selection,
  9. required ToolController tools,
  10. required OutlineCache outlines,
  11. required ChromePalette chrome,
  12. required PaperPalette paper,
  13. double selectionStrokePixels = kSelectionStrokePixels,
  14. int? sheetArgb,
  15. GripCache? grips,
  16. TextTool? textTool,
  17. Listenable? fitRequests,
  18. bool fitOnStart = true,
  19. bool startFitIsRequest = false,
  20. VoidCallback? onFitted,
  21. ViewportTransform? framing(
    1. Size size
    )?,
  22. Widget? underlay,
  23. Widget? overlay,
  24. Widget? tableOverlays,
  25. bool rulers = true,
  26. bool grid = true,
  27. int cameraEpoch()?,
  28. bool userCamera = true,
  29. void onCanvasPlaced(
    1. Object view,
    2. Rect? global
    )?,
  30. bool autofocus = true,
})

Implementation

const PlannerView({
  super.key,
  required this.document,
  required this.index,
  required this.resolver,
  required this.camera,
  required this.page,
  required this.policy,
  required this.selection,
  required this.tools,
  required this.outlines,
  required this.chrome,
  required this.paper,
  this.selectionStrokePixels = kSelectionStrokePixels,
  this.sheetArgb,
  this.grips,
  this.textTool,
  this.fitRequests,
  this.fitOnStart = true,
  this.startFitIsRequest = false,
  this.onFitted,
  this.framing,
  this.underlay,
  this.overlay,
  this.tableOverlays,
  this.rulers = true,
  this.grid = true,
  this.cameraEpoch,
  this.userCamera = true,
  this.onCanvasPlaced,
  this.autofocus = true,
});