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

outdated

Two-dimension table with both sticky headers

table_sticky_headers #

This package for Flutter allows you to display two-dimension table with both sticky headers

Usage example:

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    List<String> tops = List.generate(20, (i) => '${i + 1}');
    List<String> lefts = List.generate(20, (i) => '${i + 1}');

    return MaterialApp(
      title: 'Flutter Demo',
      home: Scaffold(
        appBar: AppBar(
          title: Text('Sticky Headers Two-Dimension  Table'),
          backgroundColor: Colors.amber,
        ),
        body: StickyHeadersTable(
          columnsLength: tops.length,
          rowsLength: lefts.length,
          columnsTitleBuilder: (i) => 'Top ${tops[i]}',
          rowsTitleBuilder: (i) => 'Left ${lefts[i]}',
          contentCellBuilder: (i, j) => 'T${tops[i]} : L${lefts[j]}',
          legendCell: 'Permanently Sticky',
        ),
      ),
    );
  }
}

Support #

Please file issues and feature requests.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

172
likes
20
pub points
93%
popularity

Publisher

unverified uploader

Two-dimension table with both sticky headers

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on table_sticky_headers