Skip to content
pubscout

escape_parent_padding

1.0.4, released 2 years ago by an unverified publisher

A Flutter widget that allows child widgets to visually escape parent padding constraints.

WASM-ready
$ flutter pub add escape_parent_padding
Source repository

What it does

It provides a mechanism for child widgets to ignore padding applied by a parent widget and span full-width. It supports multiple children with opt-outs via the Escaped widget, as well as a lite mode for single-child use cases.

AI-written summary of version 1.0.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need specific children within a padded layout to span the full screen width.
  • You are building full-width layouts like horizontal ListViews inside padded containers.

Skip it when

  • You are not using parent padding constraints that need to be bypassed.
  • You want a complete UI kit rather than a single layout utility widget.

Strengths

  • Solves a common layout constraint issue without hacky workarounds.
  • Lightweight with no third-party dependencies.
  • Provides both a multi-child builder approach and a simplified lite mode.

Weaknesses

  • Limited scope restricted strictly to escaping parent padding.
  • Topics not documented.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
EscapablePadding(
  padding: const EdgeInsets.all(16),
  children: [
    const Text('Padded Item 1'),
    Escaped(
      child: Container(
        color: Colors.red,
        child: const Text('I am not padded'),
      ),
    ),
  ],
  builder: (context, children) => Column(
    crossAxisAlignment: CrossAxisAlignment.start,
    children: children,
  ),
)

Alternatives

Packages that do the same job and could replace escape_parent_padding.