Show PDF as route
This commit is contained in:
parent
65c290f5f2
commit
73996c68bc
|
|
@ -177,23 +177,7 @@ class _InvoicePdfViewState extends State<InvoicePdfView> {
|
|||
Spacer(),
|
||||
];
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.grey,
|
||||
appBar: widget.showAppBar
|
||||
? AppBar(
|
||||
centerTitle: false,
|
||||
automaticallyImplyLeading: isMobile(context),
|
||||
title: Row(
|
||||
children: [
|
||||
if (isDesktop(context)) ...[
|
||||
Text(localization.lookup('${invoice.entityType}') +
|
||||
' ' +
|
||||
(invoice.number ?? '')),
|
||||
Spacer(),
|
||||
],
|
||||
if (isDesktop(context)) ...activitySelector,
|
||||
if (isDesktop(context)) ...pageSelector,
|
||||
Theme(
|
||||
final deliveryNote = Theme(
|
||||
data: ThemeData(
|
||||
unselectedWidgetColor: state.headerTextColor,
|
||||
),
|
||||
|
|
@ -217,7 +201,23 @@ class _InvoicePdfViewState extends State<InvoicePdfView> {
|
|||
activeColor: state.accentColor,
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
return Scaffold(
|
||||
backgroundColor: Colors.grey,
|
||||
appBar: widget.showAppBar
|
||||
? AppBar(
|
||||
centerTitle: false,
|
||||
automaticallyImplyLeading: isMobile(context),
|
||||
title: Row(
|
||||
children: [
|
||||
Text(localization.lookup('${invoice.entityType}') +
|
||||
' › ' +
|
||||
invoice.number),
|
||||
Spacer(),
|
||||
if (isDesktop(context)) ...activitySelector,
|
||||
if (isDesktop(context)) ...pageSelector,
|
||||
if (isDesktop(context)) deliveryNote,
|
||||
],
|
||||
),
|
||||
actions: <Widget>[
|
||||
|
|
|
|||
Loading…
Reference in New Issue