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