flutter_persian_table

Last updated:

0 purchases

flutter_persian_table Image
flutter_persian_table Images
Add to Cart

Description:

flutter persian table

flutter_persian_table #






A Flutter package to display tabular data with pagination.
Installation #
Add the latest version of package to your pubspec.yaml:
dependencies:
flutter_persian_table: ^0.0.2
copied to clipboard
Import the package:

import 'package:flutter_persian_table/persian_table_widget.dart';
import 'package:flutter_persian_table/src/pr_table_data.dart';

copied to clipboard
See the example for sample usage.
Usage #
@override
Widget build(BuildContext context) {
final List<PrTableHeaderInfo> header = [
PrTableHeaderInfo(name: "ردیف", isExpanded: false),
PrTableHeaderInfo(name: "مشتری", isExpanded: true),
PrTableHeaderInfo(name: "تلفن", isExpanded: false),
PrTableHeaderInfo(name: "آدرس", isExpanded: true),
PrTableHeaderInfo(name: "وضعیت", isExpanded: false),
];

List<PrTableRowInfo> rowItems = [];

for (int i = 0; i < 1900; i++) {
PrTableRowInfo row = PrTableRowInfo(
id: i,
rowItems: [(i+1).toString(),"مشتری تست $i", "+989002*****", "آدرس تست شماره $i", "فعال"],
);
rowItems.add(row);
}

return Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).colorScheme.inversePrimary,
title: Text(widget.title),
),
body: FlutterPersianTable(
columnHeaders: header,
tableHeight: double.infinity,
tableData: rowItems,
));
}
copied to clipboard
See the example directory for more information.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.