CardTile class
A widget for displaying an image or text over a card widget.
Use in conjunction with ListTile.
カードウィジェットの上に画像やテキストを重ねて表示するためのウィジェット。
ListTileと併用して使ってください。
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- CardTile
- Available Extensions
Constructors
- CardTile({Key? key, VoidCallback? onTap, double? width, double? height, Widget? feature, Color? backgroundColor, Color? shadowColor, double? elevation, ShapeBorder? shape, EdgeInsetsGeometry? margin, BoxFit fit = BoxFit.cover, Widget? leading, Widget? title, Widget? subtitle, Widget? trailing, Color? iconColor, Color? textColor, EdgeInsetsGeometry? contentPadding, Color? featureColor, Widget? bottom})
-
A widget for displaying an image or text over a card widget.
const
Properties
- backgroundColor → Color?
-
The background color of the card.
final
- borderOnForeground → bool
-
Whether to paint the shape border in front of the ListTile.
final
- bottom → Widget?
-
The widget below this widget in the tree.
final
- contentPadding → EdgeInsetsGeometry?
-
The padding around the ListTile content.
final
- elevation → double?
-
The z-coordinate at which to place this card.
final
- feature → Widget?
-
Feature widget to display.
final
- featureColor → Color?
-
Background color of the Feature image.
final
- fit → BoxFit
-
How to inscribe the image into the space allocated during layout.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
The height of the card.
final
- iconColor → Color?
-
The color to use for icons and text in the list tile.
final
- isThreeLine → bool
-
Whether the title and subtitle should be displayed on one line or two lines.
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leading → Widget?
-
The widget to display before the title.
final
- margin → EdgeInsetsGeometry?
-
The margin around the card.
final
- onTap → VoidCallback?
-
A callback that is called when the card is tapped.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shadowColor → Color?
-
The shadow color of the card.
final
- shape → ShapeBorder?
-
The shape of the card.
final
- subtitle → Widget?
-
Additional content displayed below the title.
final
- textColor → Color?
-
The color to use for the text in the list tile.
final
- title → Widget?
-
The primary content of the list item.
final
- trailing → Widget?
-
The widget to display after the title.
final
- width → double?
-
The width of the card.
final
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}) → 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