Skip to content

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