getCardButtons method

dynamic getCardButtons(
  1. dynamic context,
  2. dynamic data,
  3. dynamic param0,
  4. dynamic backcolor,
  5. dynamic param,
)

Implementation

getCardButtons(context, data, param0, backcolor, param) {
  myLogAll('getCardButtons');
  List<Widget> list = [];

  if (data[gType] == gProcess) {
    List detail = data[gDetail];
    dynamic params = {gType: gTab, gName: param0, gData: data, gParam: param};
    list = getButtonsList(context, detail, data, params, backcolor);
  } else {
    //getMyItem(data, context, backcolor);
    //Widget w = SizedBox(height: 400.0, child: MyForm(data, backcolor));
    //Widget w = const Expanded(child: Text('a form'));
    Widget w = getBodyStack(
        true,
        getEmptyWidget(),
        {
          '10': {gItem: data[gItem]}
        },
        backcolor,
        [],
        context);
    list.add(SizedBox(
        height: MediaQuery.of(context).size.height - 150.0, child: w));
    return list;
  }

  return list;
}