build method

  1. @override
Widget build(
  1. BuildContext context
)
override

Implementation

@override
Widget build(BuildContext context) {
  return DropdownButtonFormField<QueryOp>(
    initialValue: currentOperator,
    isExpanded: true,
    focusColor: Colors.transparent,
    iconSize: 0,
    iconEnabledColor: Colors.transparent,
    iconDisabledColor: Colors.transparent,
    alignment: AlignmentDirectional.centerEnd,
    items: _makeDropList(opList),
    onChanged: (e) {
      currentOperator = e ?? opList.first;
      updateState();
      if (e != null) onChange(e);
    },
    decoration: InputDecoration(border: InputBorder.none, enabledBorder: InputBorder.none),
  ).sizedBox(width: 42);
}