buildActionSheetItemContent method
Implementation
List<Widget> buildActionSheetItemContent(ActionSheetItem action) {
return [
action.loading
? SizedBox(
width: Style.actionSheetItemFontSize,
height: Style.actionSheetItemFontSize,
child: CircularProgressIndicator(
valueColor:
AlwaysStoppedAnimation(Style.actionSheetItemTextColor),
backgroundColor: Style.actionSheetItemBackground,
strokeWidth: Style.borderWidthBase,
),
)
: Container(),
Text(action.name ?? "",
style: TextStyle(
fontSize: Style.actionSheetItemFontSize,
color: action.disabled
? Style.actionSheetItemDisabledTextColor
: action.color)),
SizedBox(width: action.subname != null ? Style.intervalSm : 0),
Text(action.subname ?? "",
style: TextStyle(
fontSize: Style.actionSheetSubnameFontSize,
color: Style.actionSheetSubnameColor))
];
}