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

A table view who can scroll both vertical and horizontal.

Usage #

  • 1、Init FlexibleTableController<T> and release in dispose() lifecycle callback functions. (Required)
late FlexibleTableController<T> controller;

@override
void initState() {
  super.initState();
  controller = FlexibleTableController<T>();
}

@override
void dispose() {
  controller.dispose();
  super.dispose();
}
  • 2、Init AbsFlexibleTableConfigurations<T> and add some instances of AbsFlexibleColumn<T>. (Required)
    rowHeight is required and subclass of AbsFlexibleTableRowHeight<T>.
    leftPinnedColumns is optional and place columns pinned at left.
    rightPinnedColumns is optional and place columns pinned at right.
    scrollableColumns is optional and place columns in a horizontal-scrolling ListView.
AbsFlexibleTableConfigurations<T> configurations = FlexibleTableConfigurations<T>(
  rowHeight: const FixedHeight(
    headerRowHeight: 40,
    fixedInfoRowHeight: 50,
  ),
  leftPinnedColumns: {},
  rightPinnedColumns: {},
  scrollableColumns: {},
);
  • 3、Init FlexibleTableHeader<T> widget. (Optional)
    Instance of FlexibleTableController<T> is required.
    Instance of AbsFlexibleTableConfigurations<T> is required.
FlexibleTableHeader<T>(
  controller,
  configurations: configurations,
);
  • 4、Init FlexibleTableContent<T> widget. (Required)
FlexibleTableContent<T>(
  controller,
  configurations: configurations,
);
  • Example project for more usage.

Example #

selecting not selectable

1
likes
0
pub points
64%
popularity

Publisher

unverified uploader

A table view who can scroll both vertical and horizontal.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on flexible_scrollable_table_view