getItemSubWidget method
dynamic
getItemSubWidget(
- Map item,
- dynamic typeOwner,
- dynamic name,
- dynamic context,
- dynamic id,
- dynamic backcolor,
- dynamic actions,
Implementation
getItemSubWidget(
Map item, typeOwner, name, context, id, backcolor, actions) async {
myLogAll('getItemSubWidget');
backcolor = Colors.blue.value;
//if (item[gType] == gDate && (item[gShowDetail] ?? false)) {
if (item[gType] == gDate || item[gType] == gDatetime) {
//item[gFocus] = true;
if (id == gAdvanceSearch) {
return getDatePicker('', backcolor, context, name, item[gId], actions);
/*return getDatePickerBetween(
item, backcolor, context, typeOwner, name, actions);*/
}
Map param = {
gId: id,
gItem: item,
gName: name,
gRow: null,
gTypeOwner: typeOwner
};
var value = getRowItemOneValue(param, context)[gValue];
return getDatePicker(
value ?? item[gValue], backcolor, context, name, item[gId], actions);
//} else if (item[gDroplist] != '' && (item[gShowDetail] ?? false)) {
} else if (item[gType] == gAddress ||
item[gDroplist] != '' ||
item[gType] == gIcon) {
return getDPPicker(item, backcolor, context, name, item[gId], actions);
}
return getEmptyWidget();
}