sleek_spacing icon indicating copy to clipboard operation
sleek_spacing copied to clipboard

Helper to convert SleekPadding to EdgeInsetsGeometry

Open jaumard opened this issue 4 years ago • 1 comments

In some cases it can be useful to have a EdgeInsetsGeometry to provide directly under a Card::margin or Container::padding.

Something like this would be super useful:

Card(
              margin: SleekInsets.allBig.toEdgeInserts(),
              child: SleekPadding(
                padding: SleekInsets.big(),
                child: Column(
                  mainAxisSize: MainAxisSize.min,
                  children: <Widget>[_Form()],
                ),
              ),
            ),

Or having a SleekInsets extending EdgeInsetsGeometry to be able to use them directly

jaumard avatar Apr 23 '20 12:04 jaumard