termKeysShown function

bool termKeysShown(
  1. BuildContext context
)

Whether keys are shown here: where a keyboard and a pointer reach the app (DesignInput.pointer, from DesignTapTargets). Under touch there are no keys to press, so the look leaves them out: a TermKey draws nothing, a button's keys and a menu row's step aside, a status line's keys go, and so do the keys in the bottom line of a palette, a dialog, a sheet and a toast. A pane's footer is the app's own words: give keys there only where this is true.

Implementation

bool termKeysShown(BuildContext context) =>
    DesignTapTargets.of(context).inputOn() == DesignInput.pointer;