Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 481 Bytes

File metadata and controls

17 lines (15 loc) · 481 Bytes

Adding Page Numbers to Pages

If you want to add page number on each page, you can do that by PdfViewerParams.pageOverlaysBuilder:

pageOverlaysBuilder: (context, pageRect, page) {
  return [
    Align(
      alignment: Alignment.bottomCenter,
      child: Text(
        page.pageNumber.toString(),
        style: const TextStyle(color: Colors.red),
      ),
    ),
  ];
},