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

Be flexible for various usage #221

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

masa-tokyo
Copy link

In many cases, this package is used by wrapping the root application widget (MyApp in main.dart) to enhance development.
Yet, this package can also be used for the sake of drawing UI. With this pull request, you can draw widgets like below.

Preview of a demo app

Instead of showing the root application, you can show another widget like this:
CleanShot 2023-04-07 at 10 04 17

Related commit:

Multi-device previews

You can even show several devices as below:
CleanShot 2023-04-07 at 10 05 19

Related commits:

With this shadow, the multi-view has unnecessary shadows. In ordinary usage, the appearance doesn't look different even if this box shadow is removed.
With this, the multi-view has unnecessary border. In ordinary usage, the appearance doesn't look different even if this DecoratedBox is removed.
This change enables users to set padding on the top/left/right/bottom of the frame. By default, there is no difference from the previous code.
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

Successfully merging this pull request may close these issues.

1 participant