BaseTile class

BaseTile use custom InkWell by cupertino *** use cupertino = { forceUseMaterial: true } force use ListTile on cuperitno. use ListTile by material *** use material = { forceUseCupertino: true } force use custom InkWell on material.

Inheritance

Constructors

BaseTile({Key? key, Widget? leading, Widget? title, String? titleText, Widget? subtitle, String? subtitleText, Widget? trailing, EdgeInsetsGeometry? contentPadding, GestureTapCallback? onTap, GestureLongPressCallback? onLongPress, Color? backgroundColor, Widget? child, Color splashColor = Colors.transparent, Color highlightColor = const Color.fromRGBO(153, 153, 153, .4), Border? border, double? height, BorderRadius? borderRadius, MainAxisAlignment? mainAxisAlignment, bool isThreeLine = false, bool dense = true, bool enabled = true, bool selected = false, BaseParam? baseParam})
const

Properties

backgroundColor → Color?
default is BaseTheme.baseTileBackgroundColor
final
baseParam → BaseParam?
Personalization parameters, gets platform parameters first, then mode parameters
finalinherited
border → Border?
*** general properties end *** *** cupertino properties start ***
final
borderRadius → BorderRadius?
final
child → Widget?
child != null, title, subTitle, leading, trailing will not be use. child 不为null时,直接使用child,title、subtitle、leading、trailing将失效。
final
contentPadding → EdgeInsetsGeometry?
ListTile.contentPadding
final
dense → bool
ListTile.dense
final
enabled → bool
ListTile.enabled
final
hashCode → int
The hash code for this object.
no setterinherited
height → double?
final
highlightColor → Color
final
isThreeLine → bool
*** cupertino properties end *** *** material properties start *** ListTile.isThreeLine
final
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
leading → Widget?
*** general properties start *** ListTile.leading
final
mainAxisAlignment → MainAxisAlignment?
final
onLongPress → GestureLongPressCallback?
ListTile.onLongPress
final
onTap → GestureLongPressCallback?
ListTile.onTap
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
selected → bool
ListTile.onLongselectedPress
final
splashColor → Color
final
subtitle → Widget?
ListTile.subtitle
final
subtitleText → String?
When subtitleText != null will use title,else use Text(titleText)
final
title → Widget?
ListTile.title
final
titleText → String?
When title != null will use title,else use Text(titleText)
final
trailing → Widget?
ListTile.trailing 多个时使用row包装,material下请指定宽度
final

Methods

beforeBuild(BuildContext context) → void
Called before build
inherited
beforeBuildByCupertino(BuildContext context) → void
Called before buildByCupertino
inherited
beforeBuildByCupertinoNative(BuildContext context) → void
Called before buildByCupertinoNative (native iOS implementation)
inherited
beforeBuildByMaterial(BuildContext context) → void
Called before buildByMaterial
inherited
build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
inherited
buildByCupertino(BuildContext context) → Widget
build on cupertino mode (Flutter implementation)
buildByCupertinoNative(BuildContext context) → dynamic
build on cupertino mode with native iOS components (cupertino_native package) This is called when baseParam.nativeIOS = true Default implementation falls back to buildByCupertino()
inherited
buildByMaterial(BuildContext context) → Widget
build on material mode
commonBuild(BuildContext context, BaseParam? baseParam) → dynamic
inherited
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
getBuildMode(BaseParam? baseParam) → WidgetBuildMode
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
valueOf(String key, dynamic value) → dynamic
inherited
valueOfBaseParam(BaseParam? baseParam, String key, dynamic value) → dynamic
No reflection available in Dart First get value from platform, then from mode, finally from value itself
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited