mirror of
https://gitlab.com/comunic/comunicmobile
synced 2024-11-22 21:09:21 +00:00
Simplify check
This commit is contained in:
parent
3a9bb3d13e
commit
60c135bf01
@ -55,7 +55,8 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> {
|
|||||||
bool get hasPDF => _postPDF != null;
|
bool get hasPDF => _postPDF != null;
|
||||||
|
|
||||||
bool get canSubmitForm =>
|
bool get canSubmitForm =>
|
||||||
!_isCreating && _postTextController.text.length > 5 || hasImage || hasPDF;
|
!_isCreating && _postTextController.text.length > 5 ||
|
||||||
|
postKind != PostKind.TEXT;
|
||||||
|
|
||||||
PostKind get postKind {
|
PostKind get postKind {
|
||||||
if (hasImage)
|
if (hasImage)
|
||||||
|
Loading…
Reference in New Issue
Block a user