flexible_data_view 0.0.3
flexible_data_view: ^0.0.3 copied to clipboard
A customizable package for displaying data in list, grid, table or slideshow views.
π README.md #
# π¦ flexible_data_view
A powerful and customizable Flutter widget for displaying data in multiple flexible formats including **ListView**, **GridView**, **Slideshow (PageView)**, and **TableView**. Easily switch between views, customize each card, scroll direction, and even enable auto-slideshow with no external dependencies like `carousel_slider`.
---
## β¨ Features
- β
List, Grid, Slideshow (PageView), and Table support
- π¨ Customizable card widget using `itemBuilder`
- π Auto-slideshow with configurable interval
- βοΈ Vertical or horizontal scroll direction
- π Grid cross-axis customization
- π Table layout with headers and rows
- π§± Lightweight and no third-party dependencies
---
## π Getting Started
Add the dependency in your `pubspec.yaml`:
```yaml
dependencies:
flexible_data_view: ^1.0.0
π§© Usage #
Import #
import 'package:flexible_data_view/flexible_data_view.dart';
π‘ Example #
FlexibleDataView<String>(
data: ['Apple', 'Banana', 'Cherry'],
viewType: ViewType.grid,
gridCrossAxisCount: 2,
scrollDirection: Axis.vertical,
autoSlide: true,
slideInterval: const Duration(seconds: 3),
itemBuilder: (item, index) => Card(
child: Center(
child: Text(item),
),
),
)
π ViewType Options #
enum ViewType {
list,
grid,
slideshow,
table,
}
π Table Example #
FlexibleTableView(
headers: ['Name', 'Age'],
rows: [
['Alice', '25'],
['Bob', '30'],
],
)
πΈ Screenshots #
| List View | Grid View | Slideshow | Table |
|---|---|---|---|
| β | β | β | β |
π Example Project #
Check the full example in the example folder or run:
cd example
flutter run
π§ͺ Run Tests #
flutter test
πΌ Maintainer #
Developed & maintained by Md.Rahul Reza π« For any inquiries, issues, or feature requests, please contact via website.
π License #
MIT License