PassiveCanvasTransformer class

Inheritance

Constructors

PassiveCanvasTransformer(GetNode getNode, WidgetNodeTransformerManager manager)

Properties

getNode → GetNode
The function that returns a node by its id.
finalinherited
hashCode → int
The hash code for this object.
no setterinherited
manager → WidgetNodeTransformerManager
The node transformer manager that this transformer is registered to.
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildWidget(CanvasNode node, BuildContext context, WidgetBuildSettings settings) → Widget
Transforms a node into some output.
override
canvasBackground(BuildContext context, CanvasNode node) → Color?
The canvas's background: its fill, except for a dialog's canvas that fills the screen because it holds a responsive layout; its layout draws the dialog, and its fill would hide the screen behind the barrier.
followsScreen(CanvasNode node) → bool
Whether node fills the space it is shown in even as a dialog: a responsive canvas holding a responsive layout, whose layout draws the dialog. A canvas that hugs its content is a card of its own size instead (a confirm dialog), centered like any dialog; its layout still picks the variant for the screen's width.
getAppBar(BuildContext context, CanvasNode node, WidgetBuildSettings settings) → PreferredSizeWidget?
getFAB(BuildContext context, CanvasNode node, WidgetBuildSettings settings) → Widget?
getNavigationBar(BuildContext context, CanvasNode node, WidgetBuildSettings settings) → Widget?
hasNearbyResponsiveLayout(CanvasNode node) → bool
This would not work if the canvas is expected to have 2 different forms. For that to work, a custom Form node is required. However, that's rarely the case most of the time, so this should work for most cases! Whether node's layout is responsive: a variance with breakpoints within its body's first levels, where layouts.createResponsive puts one.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onFaBPressed(BuildContext context, CanvasNode node) → void
showsOverScreen(CanvasSizing sizing, CanvasNode node) → bool
Whether node, shown with sizing, fills the screen as a dialog.
toString() → String
A string representation of this object.
inherited
wrapWithSafeArea(SafeAreaModel safeArea, Widget body) → Widget

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

getBodyChildren(CanvasNode node) → List<String>
hasResponsiveLayout(BaseNode node, GetNode getNode) → bool
Whether node or a node under it is a responsive layout (a VarianceNode whose variants map to breakpoints), in any variant.
retrieveBackgroundColor(BuildContext context, CanvasNode node) → Color?

Constants

name → const String