add pagination for invoice and update ui for material 3
This commit is contained in:
@@ -4,8 +4,8 @@ import 'dart:io';
|
||||
import 'package:fcs/helpers/cache_mgr.dart';
|
||||
import 'package:fcs/helpers/theme.dart';
|
||||
import 'package:fcs/pages/main/util.dart';
|
||||
import 'package:fcs/pages/widgets/local_app_bar.dart';
|
||||
import 'package:fcs/pages/widgets/progress.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_pdfview/flutter_pdfview.dart';
|
||||
import 'package:share/share.dart';
|
||||
@@ -54,17 +54,12 @@ class _PDFScreenState extends State<PDFScreen> with WidgetsBindingObserver {
|
||||
return LocalProgress(
|
||||
inAsyncCall: _isLoading,
|
||||
child: Scaffold(
|
||||
appBar: AppBar(
|
||||
centerTitle: true,
|
||||
appBar: LocalAppBar(
|
||||
backgroundColor: Colors.white,
|
||||
shadowColor: Colors.transparent,
|
||||
title:
|
||||
Text(widget.title ?? "", style: TextStyle(color: primaryColor)),
|
||||
leading: new IconButton(
|
||||
icon: new Icon(CupertinoIcons.back, color: primaryColor),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
),
|
||||
actions: <Widget>[
|
||||
arrowColor: primaryColor,
|
||||
titleWidget: Text(widget.title ?? "",
|
||||
style: TextStyle(color: primaryColor, fontSize: 20)),
|
||||
actions: [
|
||||
IconButton(
|
||||
icon: Icon(
|
||||
Icons.share,
|
||||
@@ -89,7 +84,7 @@ class _PDFScreenState extends State<PDFScreen> with WidgetsBindingObserver {
|
||||
fitPolicy: FitPolicy.BOTH,
|
||||
preventLinkNavigation:
|
||||
false, // if set to true the link is handled in flutter
|
||||
onRender: (int?_pages) {
|
||||
onRender: (int? _pages) {
|
||||
print(('pages => $pages'));
|
||||
setState(() {
|
||||
pages = _pages!;
|
||||
|
||||
Reference in New Issue
Block a user