Skip to content

Dynamic height list view improvements#8

Open
dhruvanbhalara wants to merge 2 commits intoYudizAndroidSunny:mainfrom
dhruvanbhalara:dynamic-height-list-view-improvements
Open

Dynamic height list view improvements#8
dhruvanbhalara wants to merge 2 commits intoYudizAndroidSunny:mainfrom
dhruvanbhalara:dynamic-height-list-view-improvements

Conversation

@dhruvanbhalara
Copy link

Pull Request Description:

This pull request introduces the following improvements to the DynamicHeightListView widget:

  1. Reduced Visual Footprint: The empty Container() has been replaced with const SizedBox.shrink() to reduce the visual footprint of the widget when the list is empty. This change makes the widget more lightweight and efficient.

  2. Improved Performance: The list view and grid view examples have been refactored to use SizedBox and ColoredBox instead of directly setting the colour on the container. This improves the performance of the widgets by reducing the number of unnecessary widgets in the tree.

These changes aim to enhance the overall user experience and performance of the DynamicHeightListView widget and its related components.

Replaces the empty `Container()` with `const SizedBox.shrink()` to reduce
the visual footprint of the widget when the list is empty. This change
makes the widget more lightweight and efficient.
…ter performance

Refactor the list view and grid view examples to use SizedBox and ColoredBox
instead of directly setting the color on the container. This improves the
performance of the widgets by reducing the number of unnecessary widgets in
the tree.
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