CardSurface class
The fill, press highlight, focus ring and hit area of a card, laid out as a button: no smaller than minimum, centred in a tapTarget it may grow to.
- Inheritance
Constructors
-
CardSurface({Key? key, required OutlinedBorder shape, required Color fill, required Color previousFill, required BorderSide side, required BorderSide previousSide, required Animation<
double> transition, required Animation<double> pressed, Color hover = const Color(0x00000000), PressSparkles? sparkles, Color inkColor = const Color(0x00000000), required PressLook look, required Brightness brightness, required EdgeInsets padding, required BoxConstraints minimum, required Size tapTarget, required bool interactive, required bool selected, bool childFills = false, bool clipsChild = false, VoidCallback? onTap, ValueChanged<PointerDownEvent> ? onPointerDown, ValueChanged<PointerEvent> ? onPointerEnd, ValueChanged<bool> ? onHover, Widget? child}) -
const
Properties
- brightness → Brightness
-
final
- child → Widget?
-
The widget below this widget in the tree.
finalinherited
- childFills → bool
-
Lays the child out to fill the surface, for a background behind it.
final
- clipsChild → bool
-
final
- fill → Color
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hover → Color
-
Laid over the fill while a pointer rests on an interactive surface.
final
- inkColor → Color
-
final
- interactive → bool
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- look → PressLook
-
final
- minimum → BoxConstraints
-
final
-
onHover
→ ValueChanged<
bool> ? -
final
-
onPointerDown
→ ValueChanged<
PointerDownEvent> ? -
final
-
onPointerEnd
→ ValueChanged<
PointerEvent> ? -
final
- onTap → VoidCallback?
-
final
- padding → EdgeInsets
-
final
-
pressed
→ Animation<
double> -
How far the press highlight shows, from 0 to 1.
final
- previousFill → Color
-
final
- previousSide → BorderSide
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
final
- shape → OutlinedBorder
-
final
- side → BorderSide
-
final
- sparkles → PressSparkles?
-
final
- tapTarget → Size
-
final
-
transition
→ Animation<
double> -
Runs from the previous fill and side to the current ones.
final
Methods
-
createElement(
) → SingleChildRenderObjectElement -
RenderObjectWidgets always inflate to a RenderObjectElement subclass.
inherited
-
createRenderObject(
BuildContext context) → RenderCardSurface -
Creates an instance of the RenderObject class that this
RenderObjectWidget represents, using the configuration described by this
RenderObjectWidget.
override
-
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
-
didUnmountRenderObject(
covariant RenderObject renderObject) → void -
This method is called when a RenderObject that was previously
associated with this widget is removed from the render tree.
The provided RenderObject will be of the same type as the one created by
this widget's createRenderObject method.
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
-
updateRenderObject(
BuildContext context, covariant RenderCardSurface renderObject) → void -
Copies the configuration described by this RenderObjectWidget to the
given RenderObject, which will be of the same type as returned by this
object's createRenderObject.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited