flexible_scrollable_table_view 3.0.5 copy "flexible_scrollable_table_view: ^3.0.5" to clipboard
flexible_scrollable_table_view: ^3.0.5 copied to clipboard

A table view who can scroll both vertical and horizontal.

使用方法 #

Column(children: [
  FlexibleTableHeader<T>(
    dataSource,
    rowBuilder: rowBuilder,
  ),
  Expanded(
    child: FlexibleTableContent<T>(
      dataSource,
      rowBuilder: rowBuilder,
    ),
  ),
]);

其中 #

  • T为表格每一行的数据类型
  • dataSource为表格数据源,其类型为FlexibleTableDataSource<T>。它是ChangeNotifier的子类,并实现了ValueListenable<List<T>>,类似ValueNotifier<T>
  • rowBuilder为表行构建代理类。在FlexibleTableHeader<T>中为FlexibleTableHeaderRowBuilderMixin<T>类型,在FlexibleTableContent<T>中为FlexibleTableInfoRowBuilderMixin<T>类型。
1
likes
140
pub points
64%
popularity

Publisher

unverified uploader

A table view who can scroll both vertical and horizontal.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flexible_scrollable_table_view