MorphSurface class
The Material adapter of the widget layer: renders the visible
surface of the nearest MorphTag FROM its declared spec
(Material + InkWell with the spec's shape), so the button and the
flight can never disagree about the surface. The tap handler
receives a context UNDER the tag, which is why showMorph* can omit
from: - the morph flies from the surface the finger is already
on.
An opinion, not the contract: Material + Ink is one design system's answer, and button accessibility is an app-wide decision - fork this if your app renders surfaces differently. The ENGINE's contract ends at MorphTag.specOf; everything below it is replaceable.
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- MorphSurface
Constructors
- MorphSurface({Key? key, void onTap(BuildContext context)?, required Widget child})
-
Creates a surface for the enclosing tag's spec.
const
Properties
- child → Widget
-
The surface content.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- onTap → void Function(BuildContext context)?
-
Receives a context inside the tag's subtree - pass it straight to
showMorph*/showMorphRoute.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
build(
BuildContext context) → Widget -
Describes the part of the user interface represented by this widget.
override
-
createElement(
) → StatelessElement -
Creates a StatelessElement to manage this widget's location in the tree.
inherited
-
debugDescribeChildren(
) → List< DiagnosticsNode> -
Returns a list of DiagnosticsNode objects describing this node's
children.
inherited
-
debugFillProperties(
DiagnosticPropertiesBuilder properties) → void -
Add additional properties associated with the node.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toDiagnosticsNode(
{String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode -
Returns a debug representation of the object that is used by debugging
tools and by DiagnosticsNode.toStringDeep.
inherited
-
toString(
{DiagnosticLevel minLevel = DiagnosticLevel.info}) → String -
A string representation of this object.
inherited
-
toStringDeep(
{String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String -
Returns a string representation of this node and its descendants.
inherited
-
toStringShallow(
{String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String -
Returns a one-line detailed description of the object.
inherited
-
toStringShort(
) → String -
A short, textual description of this widget.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited