logicalPadding method

EdgeInsetsGeometry logicalPadding({
  1. double start = 0.0,
  2. double end = 0.0,
  3. double top = 0.0,
  4. double bottom = 0.0,
})

Creates RTL-aware directional padding.

Example:

Container(
  padding: context.logicalPadding(start: 16, end: 8),
  child: Text('Hello'),
)

Implementation

EdgeInsetsGeometry logicalPadding({
  double start = 0.0,
  double end = 0.0,
  double top = 0.0,
  double bottom = 0.0,
}) => EdgeInsetsDirectional.fromSTEB(start, top, end, bottom);