City Weather List #41
Open
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.
Submission description
This is a simple carousel which lists weather information from several cities.
What went well
I wanted to test the compatibility of CarouselView with other plugins such as PancakeView and ImageCircle. The implementation was successful and pretty straightforward.
I was wondering how to scroll to an specific item when the elements were loaded into the list. First I did it with
OnAppearing + Task.Delay, but after reading #30 (comment) I found out that there's aPositionproperty, which is much better.Moreover, #38 (comment) also put me in the right track to implement spacing between items, so thanks for
ItemsSpacing.What didn't go well
At the end of the animation you can see that I had to try harder to scroll to a previous item, it kinda bounced back (or is that the expected behavior of
KeepScrollOffsetfor theItemsUpdatingScrollModeproperty? Not really sure). I only tested it on emulator, but will try to implement it on a real device and will update this comment.Missing or desired things
Does it exist a property for delaying a few seconds the transition between the first item and the one indicated by the
Positionproperty?Anything else
I guess that's it for the moment, thank you for the opportunity that you give to the community for feedback.
Take out a survey for some goodies
Please visit this link to take a survey. If you provide your contact information, we'll send you some swag!