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

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),
);
58
likes
70
pub points
27%
popularity

Publisher

verified publisherrows.com

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

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

More

Packages that depend on swayze