flutter_persian_table 0.0.1 copy "flutter_persian_table: ^0.0.1" to clipboard
flutter_persian_table: ^0.0.1 copied to clipboard

A Flutter widget to display data in a tabular format with pagination.

flutter_persian_table #

example 1

example 1

A Flutter package to display tabular data with pagination.

Installation #

Add the latest version of package to your pubspec.yaml:

dependencies:
zikey_data_table: ^0.0.1

Import the package:


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

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: PersianTableWidget(
          columnHeaders: header,
          tableHeight: double.infinity,
          tableData: rowItems,
        ));
  }

See the example directory for more information.

1
likes
130
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter widget to display data in a tabular format with pagination.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

cupertino_icons, flutter

More

Packages that depend on flutter_persian_table