Can show expense in full screen
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2025-07-20 18:23:37 +02:00
parent 3beaba806a
commit 0943104cc8

View File

@@ -99,6 +99,19 @@ class ExpenseEditor extends HookConsumerWidget {
}
}
// Open invoice in full screen
handleFullScreenInvoice() {
showDialog(
context: context,
builder: (c) => Scaffold(
appBar: AppBar(title: Text("Expense")),
body: SingleChildScrollView(
child: PDFViewer(pdfBytes: file, fit: BoxFit.fitWidth),
),
),
);
}
return Scaffold(
appBar: AppBar(
title: Text("Expense info"),
@@ -130,7 +143,10 @@ class ExpenseEditor extends HookConsumerWidget {
children: [
// Expense preview
Expanded(
child: PDFViewer(pdfBytes: file, fit: BoxFit.contain),
child: GestureDetector(
onTap: handleFullScreenInvoice,
child: PDFViewer(pdfBytes: file, fit: BoxFit.contain),
),
),
SizedBox(height: 10),