SimplePagenation constructor
const
SimplePagenation({
- Key? key,
- required List<
Widget> children, - int itemsPerPage = 5,
- Icon nextIcon = const Icon(Icons.arrow_forward, size: 20),
- Icon previousIcon = const Icon(Icons.arrow_back, size: 20),
- Decoration decoration = const BoxDecoration(color: Colors.blue),
- Decoration currentPageDecoration = const BoxDecoration(color: Colors.blueAccent),
- EdgeInsetsGeometry padding = const EdgeInsets.all(0.0),
- 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);