MathWorkspacePresentation class
Presentation-level controls for hosts embedding MathDrawingPage.
Flutter Theme remains the source of colors and typography. These options adjust package layout and provide localized labels and error surfaces.
Constructors
- MathWorkspacePresentation({MathWorkspaceLabels labels = const MathWorkspaceLabels(), MathWorkspaceDensity density = MathWorkspaceDensity.comfortable, EdgeInsets? canvasInset, EdgeInsets controlInset = const EdgeInsets.fromLTRB(8, 0, 8, 8), double responsiveBreakpoint = 0, MathWorkspaceControlPlacement controlPlacement = MathWorkspaceControlPlacement.bottomEnd, MathWorkspaceInteractionPolicy interactionPolicy = const MathWorkspaceInteractionPolicy(), Widget dialogBuilder(BuildContext context, Widget dialog)?, Widget errorBuilder(BuildContext context, String message)?})
-
const
Properties
- canvasInset → EdgeInsets?
-
Optional inset applied to both canvases. Omission preserves each view's
historical spacing.
final
- canvasInset2D → EdgeInsets
-
Inset applied to the 2D canvas, retaining its original default spacing.
no setter
- canvasInset3D → EdgeInsets
-
Inset applied to the 3D canvas, retaining its original default spacing.
no setter
- controlInset → EdgeInsets
-
final
- controlPlacement → MathWorkspaceControlPlacement
-
final
- density → MathWorkspaceDensity
-
final
- dialogBuilder → Widget Function(BuildContext context, Widget dialog)?
-
final
- errorBuilder → Widget Function(BuildContext context, String message)?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- interactionPolicy → MathWorkspaceInteractionPolicy
-
final
- labels → MathWorkspaceLabels
-
final
- responsiveBreakpoint → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildDialog(
BuildContext context, Widget dialog) → Widget - Wraps a package dialog with the host's dialog surface when configured.
-
buildError(
BuildContext context, String message) → Widget - Builds the configured error content, or the default plain message.
-
isCompactForWidth(
double width) → bool - Whether the compact layout should be used for the supplied width. A zero breakpoint keeps the default layout at every width.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited