swayze 1.0.1 copy "swayze: ^1.0.1" to clipboard
swayze: ^1.0.1 copied to clipboard

outdated

A set of widgets and controllers to display very large tables on flutter apps.


Rows

The spreadsheet with superpowers ✨!


Swayze 🕺 #

A set of widgets and controllers to display very large tables on flutter apps.

It exports a sliver that renders a table with scroll virtualization in two axis. This means that only visible widgets are built, only the visible render objects go trough layout and painting.

Swayze is the spreadsheet rendering engine for tables in the Rows app.

Installation #

flutter pub add swayze

Usage #

Everything on Swayze starts via a widget. SliverSwayzeTable represents a single table.

Since it is a sliver, it should be wrapped in a scroll view.

CustomScrollView(
  slivers: [
      SliverSwayzeTable(
        tableData: widget.table,
        eventInterceptor: eventInterceptor,
        controller: controller,
        style: myStyle,
        // ...
      ),
  ],
);

Style #

The field style is optional and defaults to a default style instance defaultSwayzeStyle. It is possible to extends a style just with the fields to be customized.

final myStyle = SwayzeStyle.defaultSwayzeStyle.copyWith(
  selectionStyle: SelectionStyle(color: Colors.pink),
);
60
likes
0
points
71
downloads

Publisher

verified publisherrows.com

Weekly Downloads

A set of widgets and controllers to display very large tables on flutter apps.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

built_collection, cached_value, collection, flutter, flutter_sticky_header, memoize, meta, path_drawing, swayze_math, uuid

More

Packages that depend on swayze