💄 Optimzations
This commit is contained in:
@@ -197,8 +197,6 @@ class _CreateFundSheetState extends State<CreateFundSheet> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
|
||||||
// Split Type Section (only show when there are 2+ recipients)
|
|
||||||
if (selectedRecipients.length >= 2) ...[
|
|
||||||
const Gap(16),
|
const Gap(16),
|
||||||
Text(
|
Text(
|
||||||
'splitType'.tr(),
|
'splitType'.tr(),
|
||||||
@@ -239,7 +237,6 @@ class _CreateFundSheetState extends State<CreateFundSheet> {
|
|||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
|
||||||
|
|
||||||
const Gap(16),
|
const Gap(16),
|
||||||
|
|
||||||
|
|||||||
@@ -685,12 +685,7 @@ class ComposeLogic {
|
|||||||
final hasAttachments = state.attachments.value.isNotEmpty;
|
final hasAttachments = state.attachments.value.isNotEmpty;
|
||||||
|
|
||||||
if (!hasContent && !hasAttachments) {
|
if (!hasContent && !hasAttachments) {
|
||||||
// Show error message if context is mounted
|
showErrorAlert('postContentEmpty'.tr());
|
||||||
if (context.mounted) {
|
|
||||||
ScaffoldMessenger.of(
|
|
||||||
context,
|
|
||||||
).showSnackBar(SnackBar(content: Text('postContentEmpty')));
|
|
||||||
}
|
|
||||||
throw Exception('Post content is empty'); // Don't submit empty posts
|
throw Exception('Post content is empty'); // Don't submit empty posts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user