BannerListTile class
/////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////////
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- BannerListTile
Constructors
- BannerListTile({Key? key, String? bannerText, double? bannersize = 40.0, bool? showBanner = true, bool? bannerPositionRight = true, Color? bannerTextColor, Color? bannerColor, Text? title, Widget? subtitle, double? subtitleOpacity = 0.80, BorderRadius? borderRadius, Widget? imageContainer, double? imageContainerSize = 80.0, int? imageContainerShapeZigzagIndex, Widget? trailing, bool? centerTrailingbyImageboxsize = true, double? trailingBoxwidth, Color? backgroundColor = const Color(0xff003354), double? height, double? width, EdgeInsetsGeometry? margin, double? elevation, bool? randomBackgroundColor, BorderSide? borderside, dynamic onTap()?, dynamic onTapCancel()?, dynamic onHighlightChanged(bool)?, dynamic onFocusChange(bool)?, dynamic onTapDown(TapDownDetails)?, dynamic onLongPress()?, dynamic onHover(bool)?, dynamic onDoubleTap()?})
-
Suitable for use in column or listview or anykind of vertical list.
then it will automatically take a height by given child.
const
Properties
- backgroundColor → Color?
-
Tile foreground color.
final
-
Banner foreground color.
final
-
Banner position will be set
Left or Right
by valuefalse or true
final -
Set banner size.
Height & Width will be 1:1 aspect ratio.
final
-
Text that shown on the banner.
final
-
Banner text color.
bannerTextColor = Colors.red
final - borderRadius → BorderRadius?
-
Border radius
final
- borderside → BorderSide?
-
borderside customize the border color, width, border style etc.
final
- centerTrailingbyImageboxsize → bool?
-
If true, then it will keep trailing widget in the center of BannerListTile vertically.
final
-
color
→ List<
Color> -
Background color list
final
- elevation → double?
-
Add shadow
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → double?
-
Height
not needed if used in Column, listview or any vertical list view. otherwise a height value is needed or it will take all the available height.final - imageContainer → Widget?
-
Image Container
final
- imageContainerShapeZigzagIndex → int?
-
This will create image container shape like
/ or \
. Just give a even number or odd number. While used in listview just pass it the index.final - imageContainerSize → double?
-
Image container size
80 <= size <= 190
final - key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- margin → EdgeInsetsGeometry?
-
margin used around BannerListTile.
final
- onDoubleTap → (dynamic Function()?)
-
final
- onFocusChange → (dynamic Function(bool)?)
-
final
- onHighlightChanged → (dynamic Function(bool)?)
-
final
- onHover → (dynamic Function(bool)?)
-
final
- onLongPress → (dynamic Function()?)
-
final
- onTap → (dynamic Function()?)
-
Fuctions
final
- onTapCancel → (dynamic Function()?)
-
final
- onTapDown → (dynamic Function(TapDownDetails)?)
-
final
- randomBackgroundColor → bool?
-
If true then it will choose a random color
among these two:final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showBanner → bool?
-
Show Banner on top corner or not.
final
- subtitle → Widget?
-
Subtitle text takes a widget.
A
Row with iconbuttons
or a Text() widget is suggested to use here.final - subtitleOpacity → double?
-
Set the opacity of subtitle widget.
final
- title → Text?
-
Title text takes a Text() widget.
final
- trailing → Widget?
-
Add trailing widget. A IconButton is suggested.
final
- trailingBoxwidth → double?
-
Trailing box width.
give a width if you need more width to contain your items.
final
- width → double?
-
BannerListTile width
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