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

Introduce YaruClip.diagonal() #591

Merged
merged 1 commit into from Feb 5, 2023
Merged

Introduce YaruClip.diagonal() #591

merged 1 commit into from Feb 5, 2023

Conversation

jpnurmi
Copy link
Member

@jpnurmi jpnurmi commented Feb 5, 2023

Convenient for creating app previews and theme cards etc.

Screenshot from 2023-02-05 16-42-23

Ref: #580

Convenient for creating app previews and theme cards etc.

Ref: #580
@jpnurmi
Copy link
Member Author

jpnurmi commented Feb 5, 2023

Alternatively, we could only expose the clipper instead of a widget.

Container(
  color: Colors.red,
  child: YaruClip.diagonal(
    position: YaruDiagonalClip.bottomLeft,
    child: Container(color: Colors.green),
  ),
)

vs.

Container(
  color: Colors.red,
  child: ClipPath(
    clipper: YaruClipper.diagonal(YaruDiagonalClip.bottomLeft)
    child: Container(color: Colors.green),
  ),
)

WDYT?

@Feichtmeier
Copy link
Member

nice! Makes it easier!

@Feichtmeier Feichtmeier merged commit 123a078 into ubuntu:main Feb 5, 2023
@jpnurmi jpnurmi deleted the yaru-clip branch February 5, 2023 16:18
@Jupi007
Copy link
Member

Jupi007 commented Feb 5, 2023

Cool 👍

@Feichtmeier Feichtmeier mentioned this pull request Feb 9, 2023
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.

None yet

3 participants