xEditDialog_Number method

Widget xEditDialog_Number(
  1. XFDataItem item,
  2. XCol xCol,
  3. TextEditingController textController,
  4. void parentSetState(
    1. void ()
    )?, {
  5. bool btnNumberActive = true,
})

LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT /// LAYOUT Dialog per l'editing dei Numeri non Importi

Implementation

Widget xEditDialog_Number(XFDataItem item, XCol xCol, TextEditingController textController, void Function(void Function())? parentSetState, {bool btnNumberActive = true}) {
  return Column(mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start, children: [
    btnNumberActive
        ? Row(mainAxisAlignment: MainAxisAlignment.center, children: [
            Expanded(
                child: Wrap(spacing: 6, runSpacing: 6, children: [
              builderXEditDialog_BTNs(item, textController, "-20", false, parentSetState!, xCol: xCol),
              builderXEditDialog_BTNs(item, textController, "-10", false, parentSetState, xCol: xCol),
              builderXEditDialog_BTNs(item, textController, "-5", false, parentSetState, xCol: xCol),
              builderXEditDialog_BTNs(item, textController, "-3", false, parentSetState, xCol: xCol),
              builderXEditDialog_BTNs(item, textController, "-1", false, parentSetState, xCol: xCol),
            ]))
          ])
        : Container(height: 0),
    SizedBox(height: btnNumberActive ? 10 : 1),
    Row(mainAxisAlignment: MainAxisAlignment.center, children: [
      Expanded(
          child: XTextFormField(
        height: null,
        textAlign: TextAlign.end,
        controller: textController,
        contentPadding: EdgeInsets.all(7),
        keyboardType: TextInputType.number,
        inputFormatters: [FilteringTextInputFormatter.deny(RegExp("[- /,.\\\\]"))],
      )),
      SizedBox(width: 10),
      builderXEditDialog_BTNs(item, textController, "C", false, parentSetState!),
    ]),
    SizedBox(height: btnNumberActive ? 10 : 1),
    btnNumberActive
        ? Row(mainAxisAlignment: MainAxisAlignment.center, children: [
            Expanded(
                child: Wrap(spacing: 6, runSpacing: 6, children: [
              builderXEditDialog_BTNs(item, textController, "+20", false, parentSetState, xCol: xCol),
              builderXEditDialog_BTNs(item, textController, "+10", false, parentSetState, xCol: xCol),
              builderXEditDialog_BTNs(item, textController, "+5", false, parentSetState, xCol: xCol),
              builderXEditDialog_BTNs(item, textController, "+3", false, parentSetState, xCol: xCol),
              builderXEditDialog_BTNs(item, textController, "+1", false, parentSetState, xCol: xCol),
            ]))
          ])
        : Container(height: 0)
  ]);
}