From b2d216a18885b7c31354aeeff343a02797e36008 Mon Sep 17 00:00:00 2001 From: Mohammed CHAHBOUN <69054810+M97Chahboun@users.noreply.github.com> Date: Sat, 2 Aug 2025 14:56:28 +0100 Subject: [PATCH] Adds Benchmarks: GridView vs. FlexibleWrap --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 6ebcf25..cbca832 100644 --- a/README.md +++ b/README.md @@ -29,6 +29,15 @@ Perfect for implementing uniform grid layouts like product cards, image gallerie _Note: We currently support [only items that have the same width](https://github.com/bixat/flexible_wrap/issues/10); [height direction is not supported yet](https://github.com/bixat/flexible_wrap/issues/11)_ +## Benchmarks: GridView vs. FlexibleWrap + +| Feature | GridView | FlexibleWrap | +|------------------|--------------------------------------------------|------------------------------------------------| +| **Description** | A layout that arranges items in a grid format. | It automatically distributes available space between items in a row. | +| **Usage** | Efficient for uniform item sizes. | Ideal for dynamic item sizes and wrapping. | +| **Performance** | Better performance with a builder pattern. | Currently does not support a builder; uses children instead. | +| **Screen Recording** | ![GridView](https://github.com/user-attachments/assets/90b5d6bf-dff4-4e54-8268-a75968d00551) | ![FlexibleWrap](https://github.com/user-attachments/assets/76c9f26a-a955-427b-a634-290eed41c7b9) | + ## Installation Add this to your package's pubspec.yaml file: