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

Feat : Adding AspectRatio, FittedBox, LimitedBox Widgets #120

Merged
merged 21 commits into from
Jan 19, 2025

Conversation

MohamedAbd0
Copy link
Contributor

@MohamedAbd0 MohamedAbd0 commented Jan 17, 2025

Description

Adding support Adding AspectRatio And FittedBox Widgets

Screenshot 2025-01-18 at 12 47 24 AM -- Screenshot 2025-01-18 at 12 47 54 AM -- Screenshot 2025-01-18 at 2 48 43 AM

Related Issues

Closes #121

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Code refactor
  • Build configuration change
  • Documentation
  • Chore

@MohamedAbd0 MohamedAbd0 changed the title Feat : Adding AspectRatio And FittedBox Feat : Adding AspectRatio And FittedBox And add LimitedBox Jan 17, 2025
@MohamedAbd0 MohamedAbd0 changed the title Feat : Adding AspectRatio And FittedBox And add LimitedBox Feat : Adding AspectRatio, FittedBox, LimitedBox And Visibility Widgets Jan 17, 2025
```json
{
"type": "aspectRatio",
"aspectRatio": 4 / 3,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why color is showing?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because used '/', so I will convert it to double.


---

## Enums
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I feel we should have separate documentation section for this kind of painting, structuring and styling elements like BoxFit, MiraiAlignmentDirectional, Clip etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure, I will make separate documentation.

Copy link
Contributor

@ishanvaghani ishanvaghani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MohamedAbd0 for you contribution.

@MohamedAbd0
Copy link
Contributor Author

@ishanvaghani all comments are done.

@divyanshub024
Copy link
Member

Hey @MohamedAbd0, A suggestion here for the future. Please keep the different widgets in different PRs if they are not linked together. This makes the review process much easier.

Copy link
Member

@divyanshub024 divyanshub024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @MohamedAbd0, Once again thanks for such a great PR. Please check my suggestions.

website/docs/property/box_fit.md Outdated Show resolved Hide resolved
website/docs/property/clip_behavior.md Outdated Show resolved Hide resolved
website/docs/property/clip_behavior.md Outdated Show resolved Hide resolved
website/docs/property/box_fit.md Outdated Show resolved Hide resolved
website/docs/property/mirai_alignment_directional.md Outdated Show resolved Hide resolved
website/docs/property/mirai_alignment_directional.md Outdated Show resolved Hide resolved
website/docs/property/box_fit.md Outdated Show resolved Hide resolved
website/docs/property/box_fit.md Outdated Show resolved Hide resolved
@MohamedAbd0
Copy link
Contributor Author

Hi @divyanshub024, I solved all the comments you can check now.

@divyanshub024 divyanshub024 changed the title Feat : Adding AspectRatio, FittedBox, LimitedBox And Visibility Widgets Feat : Adding AspectRatio, FittedBox, LimitedBox Widgets Jan 19, 2025
Copy link
Member

@divyanshub024 divyanshub024 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution 🎉

@divyanshub024 divyanshub024 merged commit 70eb148 into BuildMirai:dev Jan 19, 2025
3 checks passed
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.

feat: Adding Mirai AspectRatio And FittedBox Widget
3 participants