Add designs templates
This commit is contained in:
parent
b83b2e4361
commit
2490e21207
|
|
@ -146,10 +146,9 @@ class _InvoicePdfViewState extends State<InvoicePdfView> {
|
||||||
final activitySelector =
|
final activitySelector =
|
||||||
_activityId == null || (kIsWeb && state.prefState.enableNativeBrowser)
|
_activityId == null || (kIsWeb && state.prefState.enableNativeBrowser)
|
||||||
? SizedBox()
|
? SizedBox()
|
||||||
: Padding(
|
: Expanded(
|
||||||
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(left: 17),
|
padding: const EdgeInsets.only(left: 17),
|
||||||
child: SizedBox(
|
|
||||||
width: 350,
|
|
||||||
child: IgnorePointer(
|
child: IgnorePointer(
|
||||||
ignoring: _isLoading,
|
ignoring: _isLoading,
|
||||||
child: AppDropdownButton<String>(
|
child: AppDropdownButton<String>(
|
||||||
|
|
@ -183,10 +182,9 @@ class _InvoicePdfViewState extends State<InvoicePdfView> {
|
||||||
!hasDesignTemplatesForEntityType(
|
!hasDesignTemplatesForEntityType(
|
||||||
state.designState.map, invoice.entityType!)
|
state.designState.map, invoice.entityType!)
|
||||||
? SizedBox()
|
? SizedBox()
|
||||||
: Padding(
|
: Expanded(
|
||||||
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(left: 17),
|
padding: const EdgeInsets.only(left: 17),
|
||||||
child: SizedBox(
|
|
||||||
width: 200,
|
|
||||||
child: IgnorePointer(
|
child: IgnorePointer(
|
||||||
ignoring: _isLoading,
|
ignoring: _isLoading,
|
||||||
child: DesignPicker(
|
child: DesignPicker(
|
||||||
|
|
@ -205,8 +203,7 @@ class _InvoicePdfViewState extends State<InvoicePdfView> {
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
final deliveryNote = Container(
|
final deliveryNote = Flexible(
|
||||||
width: 200,
|
|
||||||
child: CheckboxListTile(
|
child: CheckboxListTile(
|
||||||
title: Text(
|
title: Text(
|
||||||
localization.deliveryNote,
|
localization.deliveryNote,
|
||||||
|
|
@ -277,7 +274,9 @@ class _InvoicePdfViewState extends State<InvoicePdfView> {
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
: null,
|
: null,
|
||||||
body: Column(children: [
|
body: Column(
|
||||||
|
crossAxisAlignment: CrossAxisAlignment.stretch,
|
||||||
|
children: [
|
||||||
Material(
|
Material(
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
|
|
@ -305,7 +304,8 @@ class _InvoicePdfViewState extends State<InvoicePdfView> {
|
||||||
'.pdf',
|
'.pdf',
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
]),
|
],
|
||||||
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue