comicFieldInset function

EdgeInsetsDirectional comicFieldInset(
  1. ComicThemeData t
)

The room inside a picker's box under t's density: its words on comicFieldWords, as a text field's; a select's list sets its words on EdgeInsetsDirectional.start.

Implementation

EdgeInsetsDirectional comicFieldInset(ComicThemeData t) {
  final p = t.density.padding(
    const EdgeInsets.symmetric(
      horizontal: comicFieldWords,
      vertical: ComicSpace.close,
    ),
  );
  return EdgeInsetsDirectional.fromSTEB(p.left, p.top, p.right, p.bottom);
}