GFListTile class

Inheritance

Constructors

GFListTile({Key? key, String? titleText, String? subTitleText, Color? color, Widget? avatar, Widget? title, Widget? subTitle, Widget? description, Widget? icon, EdgeInsets padding = const EdgeInsets.all(8), EdgeInsets margin = const EdgeInsets.symmetric(vertical: 8, horizontal: 16), Color? listItemTextColor = GFColors.DARK, bool enabled = true, GestureTapCallback? onTap, GestureLongPressCallback? onLongPress, bool selected = false, Color? focusColor, Color? hoverColor, FocusNode? focusNode, bool autofocus = false, String? firstButtonTitle, String? secondButtonTitle, GestureTapCallback? onFirstButtonTap, GestureTapCallback? onSecondButtonTap, TextStyle? firstButtonTextStyle, TextStyle? secondButtonTextStyle, double? radius, BoxShadow? shadow})
Creates ListTile with leading, title, trailing, image widget for almost every type of ListTile design.
const

Properties

autofocus bool
On true state it should focus itself if nothing else is already focused. Defaults to false
final
avatar Widget?
type of Widget or GFAvatar used to create rounded user profile
final
color Color?
The GFListTile's background color. Can be given Color or GFColors
final
description Widget?
The description to display inside the GFListTile. see Text
final
enabled bool
Whether this list tile is interactive.
final
firstButtonTextStyle TextStyle?
The style for the firstButtonText.
final
firstButtonTitle String?
The firstButtonTitle to display inside the GFListTile. see Text
final
focusColor Color?
The color for the tile's Material when it has the input focus.
final
focusNode FocusNode?
Defines the keyboard focus for this widget.
final
hashCode int
The hash code for this object.
no setterinherited
hoverColor Color?
The color for the tile's Material when a pointer is hovering over it.
final
icon Widget?
The icon to display inside the GFListTile. see Icon
final
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
listItemTextColor Color?
The color for the color of the list item text.
final
margin EdgeInsets
defines the margin of GFListTile
final
onFirstButtonTap GestureTapCallback?
Called when the user taps on the first button.
final
onLongPress GestureLongPressCallback?
Called when the user long-presses on this list tile.
final
onSecondButtonTap GestureTapCallback?
Called when the user taps on the second button.
final
onTap GestureTapCallback?
Called when the user taps this list tile.
final
padding EdgeInsets
defines the padding of GFListTile
final
radius double?
the circular radius of GFListTile
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondButtonTextStyle TextStyle?
The style for the secondButtonText.
final
secondButtonTitle String?
The secondButtonTitle to display inside the GFListTile. see Text
final
selected bool
If this tile is also enabled then icons and text are rendered with the same color.
final
shadow BoxShadow?
final
subTitle Widget?
The subTitle to display inside the GFListTile. see Text
final
subTitleText String?
type of String used to pass text, alternative to subTitle property and gets higher priority than subTitle
final
title Widget?
The title to display inside the GFListTile. see Text
final
titleText String?
type of String used to pass text, alternative to title property and gets higher priority than title
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