SimplePagenation constructor

const SimplePagenation({
  1. Key? key,
  2. required List<Widget> children,
  3. int itemsPerPage = 5,
  4. Icon nextIcon = const Icon(Icons.arrow_forward, size: 20),
  5. Icon previousIcon = const Icon(Icons.arrow_back, size: 20),
  6. Decoration decoration = const BoxDecoration(color: Colors.blue),
  7. Decoration currentPageDecoration = const BoxDecoration(color: Colors.blueAccent),
  8. EdgeInsetsGeometry padding = const EdgeInsets.all(0.0),
  9. TextStyle textStyle = const TextStyle(fontSize: 18),
})

Implementation

const SimplePagenation(
    {Key? key,
    required this.children,
    this.itemsPerPage = 5,
    this.nextIcon = const Icon(Icons.arrow_forward, size: 20),
    this.previousIcon = const Icon(Icons.arrow_back, size: 20),
    this.decoration = const BoxDecoration(
      color: Colors.blue,
    ),
    this.currentPageDecoration = const BoxDecoration(
      color: Colors.blueAccent,
    ),
    this.padding = const EdgeInsets.all(0.0),
    this.textStyle = const TextStyle(fontSize: 18)})
    : super(key: key);