Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Helper to convert SleekPadding to EdgeInsetsGeometry #3

Open
jaumard opened this issue Apr 23, 2020 · 1 comment
Open

Helper to convert SleekPadding to EdgeInsetsGeometry #3

jaumard opened this issue Apr 23, 2020 · 1 comment

Comments

@jaumard
Copy link

jaumard commented Apr 23, 2020

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
Copy link
Author

jaumard commented Apr 23, 2020

I know workaround is easy:

margin: EdgeInsets.all(SleekSpacing.of(context).big),

but I think it can be much more easy and natural to use :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant