PlannerView constructor
const
PlannerView({
- Key? key,
- required DraftDocument document,
- required SpatialIndex index,
- required StyleResolver resolver,
- required CameraController camera,
- required PageNotifier page,
- required GesturePolicy policy,
- required SelectionController selection,
- required ToolController tools,
- required OutlineCache outlines,
- required ChromePalette chrome,
- required PaperPalette paper,
- double selectionStrokePixels = kSelectionStrokePixels,
- int? sheetArgb,
- GripCache? grips,
- TextTool? textTool,
- Listenable? fitRequests,
- bool fitOnStart = true,
- bool startFitIsRequest = false,
- VoidCallback? onFitted,
- ViewportTransform? framing(
- Size size
- Widget? underlay,
- Widget? overlay,
- Widget? tableOverlays,
- bool rulers = true,
- bool grid = true,
- int cameraEpoch()?,
- bool userCamera = true,
- void onCanvasPlaced()?,
- 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,
});