comicListOnLiftedField function

Widget comicListOnLiftedField(
  1. BuildContext field,
  2. Widget list
)

Wraps the list a person types for in a focused field (a combobox's, a multi-select's): the field's face stands comicFocusLift toward the start while it has the focus, and the list starts on the face as drawn, its words on the field's. It keeps its height: the face's print stands under the face.

Implementation

Widget comicListOnLiftedField(BuildContext field, Widget list) {
  if (PopInside.of(field)) return list;
  final end = Directionality.maybeOf(field) == TextDirection.rtl ? -1.0 : 1.0;
  return Transform.translate(
    offset: Offset(-end * comicFocusLift, 0),
    child: list,
  );
}