This repository has been archived by the owner on Jun 1, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Tiago Peres França [email protected]
Description and Example
The GridView in Flutter doesn't accept items with arbitrary size, i.e. if the gridview has an item with width and height, this is not used by the gridview to calculate the size of the cell, instead, by default, every item in the gridview is a square. According to the Flutter documentation, we also can't set manually the size of the gridView items, instead, in Flutter, we must use a property called
childAscpectRatio
, which tells the aspect ratio of each cell.Unfortunately this is incompatible with the current contract of Beagle's GridView. To not mess too much with this contract (which would require changes in all platforms) and also have a usable GridView in Flutter, I exposed
childAscpectRatio
as the Beagle propertyitemAspectRatio
. I stated in the API docs that this property is only valid for Flutter.Docs PR: ZupIT/beagle-docs#838
Checklist
Please, check if these important points are met using
[x]
: