Adjust loading indicator for email templates
This commit is contained in:
parent
11ed6af110
commit
aeb2960737
|
|
@ -297,23 +297,17 @@ class _InvoiceEmailViewState extends State<InvoiceEmailView>
|
|||
return Container(
|
||||
color: Colors.white,
|
||||
height: double.infinity,
|
||||
child: Stack(
|
||||
children: [
|
||||
if (_isLoading) LinearProgressIndicator(),
|
||||
if (supportsInlineBrowser())
|
||||
EmailPreview(
|
||||
child: (supportsInlineBrowser())
|
||||
? EmailPreview(
|
||||
isLoading: _isLoading,
|
||||
subject: _subjectPreview,
|
||||
body: _emailPreview,
|
||||
)
|
||||
else
|
||||
IgnorePointer(
|
||||
: IgnorePointer(
|
||||
child: ExampleEditor(
|
||||
value: '### $_subjectPreview\n\n\n' +
|
||||
html2md.convert(_bodyPreview),
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
|
@ -372,9 +366,11 @@ class _InvoiceEmailViewState extends State<InvoiceEmailView>
|
|||
),
|
||||
),
|
||||
),
|
||||
if (state.company.markdownEmailEnabled)
|
||||
Expanded(
|
||||
child: ColoredBox(
|
||||
child: Stack(
|
||||
children: [
|
||||
if (state.company.markdownEmailEnabled)
|
||||
ColoredBox(
|
||||
color: Colors.white,
|
||||
child: IgnorePointer(
|
||||
ignoring: !enableCustomEmail,
|
||||
|
|
@ -388,7 +384,6 @@ class _InvoiceEmailViewState extends State<InvoiceEmailView>
|
|||
},
|
||||
),
|
||||
),
|
||||
),
|
||||
)
|
||||
else
|
||||
Padding(
|
||||
|
|
@ -401,7 +396,11 @@ class _InvoiceEmailViewState extends State<InvoiceEmailView>
|
|||
onChanged: (_) => _onChanged(),
|
||||
enabled: enableCustomEmail,
|
||||
),
|
||||
)
|
||||
),
|
||||
if (_isLoading) LinearProgressIndicator(),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue