SingleLine<T> class
单行 多用于单行item显示
- Inheritance
-
- Object
- DiagnosticableTree
- Widget
- StatelessWidget
- SingleLine
Constructors
-
SingleLine({Key? key, EdgeInsets? padding, required IconData? iconData, String? iconUrl, ValueChanged<
T> ? onDropdownChanged, List<DropdownMenuItem< ? dropdownItems, T? dropdownValue, String? centerTxt, TextStyle? centerTxtStyle, Widget? centerWidget, String? name, TextStyle? nameTxtStyle, Widget? nameWidget, Widget? leftView, TouchTap? onTap, bool rightShow = true, bool? isPrimary, String? rightTxt, TextStyle? rightTxtStyle, String? url, num? urlSize, Decoration? decoration, num? minHeight, num? iconHeight, num? nameLeftPadding, num? nameRightPadding, Color? backgroundColor, IconData? rightIconData, num? leftRight, num? topBottom, Widget? rightWidget, num? radius})T> > -
const
-
SingleLine.custom({Key? key, EdgeInsets? padding, required String? name, Widget? leftView, Widget? nameWidget, ValueChanged<
T> ? onDropdownChanged, List<DropdownMenuItem< ? dropdownItems, T? dropdownValue, TextStyle? nameTxtStyle, String? centerTxt, TextStyle? centerTxtStyle, required Widget? centerWidget, IconData? iconData, String? iconUrl, TouchTap? onTap, bool rightShow = false, bool? isPrimary, String? rightTxt, TextStyle? rightTxtStyle, String? url, num? urlSize, Decoration? decoration, num? minHeight, num? iconHeight, num? nameLeftPadding, num? nameRightPadding, Color? backgroundColor, IconData? rightIconData, num? leftRight, num? topBottom, Widget? rightWidget, num? radius})T> > -
const
-
SingleLine.dropdown({Key? key, EdgeInsets? padding, required String? name, required ValueChanged<
T> ? onDropdownChanged, required List<DropdownMenuItem< ? dropdownItems, T? dropdownValue, TextStyle? nameTxtStyle, String? centerTxt, TextStyle? centerTxtStyle, Widget? centerWidget, Widget? nameWidget, Widget? leftView, IconData? iconData, String? iconUrl, TouchTap? onTap, bool rightShow = false, bool? isPrimary, String? rightTxt, TextStyle? rightTxtStyle, String? url, num? urlSize, Decoration? decoration, num? minHeight, num? iconHeight, num? nameLeftPadding, num? nameRightPadding, Color? backgroundColor, IconData? rightIconData, num? leftRight, num? topBottom, num? radius})T> > -
const
-
SingleLine.normal({Key? key, EdgeInsets? padding, required String? name, TextStyle? nameTxtStyle, Widget? nameWidget, Widget? leftView, ValueChanged<
T> ? onDropdownChanged, List<DropdownMenuItem< ? dropdownItems, T? dropdownValue, String? centerTxt, TextStyle? centerTxtStyle, Widget? centerWidget, IconData? iconData, String? iconUrl, TouchTap? onTap, bool rightShow = true, bool? isPrimary, String? rightTxt, TextStyle? rightTxtStyle, String? url, num? urlSize, Decoration? decoration, num? minHeight, num? iconHeight, num? nameLeftPadding, num? nameRightPadding, Color? backgroundColor, IconData? rightIconData, num? leftRight, num? topBottom, Widget? rightWidget, num? radius})T> > -
const
Properties
- backgroundColor → Color?
-
final
- centerTxt → String?
-
final
- centerTxtStyle → TextStyle?
-
final
- centerWidget → Widget?
-
final
- decoration → Decoration?
-
final
-
dropdownItems
→ List<
DropdownMenuItem< ?T> > -
final
- dropdownValue → T?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- iconData → IconData?
-
final
- iconHeight → num?
-
final
- iconUrl → String?
-
final
- isPrimary → bool?
-
final
- key → Key?
-
Controls how one widget replaces another widget in the tree.
finalinherited
- leftRight → num?
-
final
- leftView → Widget?
-
final
- minHeight → num?
-
final
- name → String?
-
final
- nameLeftPadding → num?
-
final
- nameRightPadding → num?
-
final
- nameTxtStyle → TextStyle?
-
final
- nameWidget → Widget?
-
final
-
onDropdownChanged
→ ValueChanged<
T> ? -
final
- onTap → TouchTap?
-
final
- padding → EdgeInsets?
-
final
- radius → num?
-
final
- rightIconData → IconData?
-
final
- rightShow → bool
-
final
- rightTxt → String?
-
final
- rightTxtStyle → TextStyle?
-
final
- rightWidget → Widget?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- topBottom → num?
-
final
- url → String?
-
final
- urlSize → num?
-
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