onTap method
dynamic
onTap(
- dynamic context,
- Map map,
- dynamic backcolor
)
Implementation
onTap(context, Map map, backcolor) {
myLogAll('onTap');
try {
if (map[gType] == gAction) {
if (map[gActionid] == gLogout) {
logOff(context);
} else if (map[gActionid] == gChangepassword) {
changePassword([], context);
} else if (map[gActionid] == gRole) {}
} else if (map[gType].endsWith(gTable)) {
var tableid = map[gActionid];
_lastBackGroundColor = _defaultBackGroundColor;
showTableOne(
tableid, context, map[gLabel] ?? "", "", backcolor, null, null, -1);
}
} catch (e) {
showMsg(context, e, null);
}
if (map[gLabel] == "Test") {
//showTab("role", context);
}
//print('=====typed ' + map[gLabel]);
}