pageSliverBuilder method

SliverChildBuilderDelegate pageSliverBuilder(
  1. MaterialColor color
)

Screen content example for demo

Implementation

SliverChildBuilderDelegate pageSliverBuilder(MaterialColor color) {
  return SliverChildBuilderDelegate(
    (BuildContext context, int index) {
      return Card(
        margin: const EdgeInsets.all(15),
        child: Container(
          color: color[100 * (index % 9 + 1)],
          height: 80,
          alignment: Alignment.center,
          child: const Text(
            '',
            style: TextStyle(fontSize: 30),
          ),
        ),
      );
    },
    childCount: 10,
  );
}