Browse Source

ios pdf更改

wr_2024_invoice
zsw 5 months ago
parent
commit
67a49d0fef
  1. 6
      ios/Runner.xcodeproj/project.pbxproj
  2. 8
      lib/order/invoices_manage/pdf_screen.dart

6
ios/Runner.xcodeproj/project.pbxproj

@ -602,7 +602,7 @@
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 7;
CURRENT_PROJECT_VERSION = 8;
DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
@ -806,7 +806,7 @@
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 7;
CURRENT_PROJECT_VERSION = 8;
DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (
@ -896,7 +896,7 @@
CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES = NO;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements;
CURRENT_PROJECT_VERSION = 7;
CURRENT_PROJECT_VERSION = 8;
DEVELOPMENT_TEAM = YF3Q8DVP52;
ENABLE_BITCODE = NO;
FRAMEWORK_SEARCH_PATHS = (

8
lib/order/invoices_manage/pdf_screen.dart

@ -74,7 +74,7 @@ class _PDFScreenState extends State<PDFScreen> with WidgetsBindingObserver {
if (total > 0) {
print('page change: $page/$total');
setState(() {
currentPage = page + 1;
currentPage = page;
pageTotal = total;
});
} else {
@ -98,7 +98,7 @@ class _PDFScreenState extends State<PDFScreen> with WidgetsBindingObserver {
width: MediaQuery.of(context).size.width,
bottom: 45,
child: Center(
child: Text("${currentPage}/${pageTotal}",
child: Text("${currentPage + 1}/${(pageTotal > 0)?pageTotal:1}",
style: TextStyle(color: Colors.white, fontSize: 16)),
),
),
@ -147,7 +147,7 @@ class _PDFScreenState extends State<PDFScreen> with WidgetsBindingObserver {
if (total > 0) {
print('page change: $page/$total');
setState(() {
currentPage = page + 1;
currentPage = page;
pageTotal = total;
});
} else {
@ -169,7 +169,7 @@ class _PDFScreenState extends State<PDFScreen> with WidgetsBindingObserver {
bottom: 45,
width: MediaQuery.of(context).size.width,
child: Center(
child: Text("${currentPage}/${pageTotal}",
child: Text("${currentPage + 1}/${(pageTotal > 0)?pageTotal:1}",
style: TextStyle(color: Colors.black, fontSize: 16)),
),
),

Loading…
Cancel
Save