FlatListItem.transparent constructor

FlatListItem.transparent({@required BuildContext context, int indexInList: 0, double cornerRadius: 0.0, ScalePreset scalePreset: ScalePreset.normal, Icon icon, String leftLabelText, String leftDataText, String rightLabelText, String rightDataText, FontWeight leftLabelTextFontWeight: FontWeight.normal, FontWeight leftDataTextFontWeight: FontWeight.normal, FontWeight rightLabelTextFontWeight: FontWeight.normal, FontWeight rightDataTextFontWeight: FontWeight.normal, bool showHangingDivider: true, OnItemTap onTap })

Constructs a FlatListItem with transparent background.

Implementation

FlatListItem.transparent({
  @required BuildContext context,
  int indexInList = 0,
  double cornerRadius = 0.0,
  ScalePreset scalePreset = ScalePreset.normal,
  Icon icon,
  String leftLabelText,
  String leftDataText,
  String rightLabelText,
  String rightDataText,
  FontWeight leftLabelTextFontWeight = FontWeight.normal,
  FontWeight leftDataTextFontWeight = FontWeight.normal,
  FontWeight rightLabelTextFontWeight = FontWeight.normal,
  FontWeight rightDataTextFontWeight = FontWeight.normal,
  bool showHangingDivider = true,
  OnItemTap onTap,
}) : this(
        context: context,
        indexInList: indexInList,
        cornerRadius: cornerRadius,
        scalePreset: scalePreset,
        icon: icon,
        leftLabelText: leftLabelText,
        leftDataText: leftDataText,
        rightLabelText: rightLabelText,
        rightDataText: rightDataText,
        leftLabelTextFontWeight: leftLabelTextFontWeight,
        leftDataTextFontWeight: leftDataTextFontWeight,
        rightLabelTextFontWeight: rightLabelTextFontWeight,
        rightDataTextFontWeight: rightDataTextFontWeight,
        showHangingDivider: showHangingDivider,
        onTap: onTap,

        //Pre-configured fields.
        backgroundColor: Colors.transparent,
        leftLabelTextColor: Colors.green,
        leftDataTextColor: Colors.black,
        rightLabelTextColor: Colors.green,
        rightDataTextColor: Colors.black,
        hangingDividerColor: Colors.grey,
      );