mirror of
				https://gitlab.com/comunic/comunicmobile
				synced 2025-11-04 12:14:11 +00:00 
			
		
		
		
	Simplify check
This commit is contained in:
		@@ -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)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user