1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-26 14:59:22 +00:00
This commit is contained in:
Pierre HUBERT 2020-04-25 17:17:11 +02:00
parent da48328c92
commit cbc0de944e

View File

@ -67,7 +67,7 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> {
bool get hasSurvey => _postSurvey != null; bool get hasSurvey => _postSurvey != null;
bool get hasYoutTubeID => _youtubeID != null; bool get hasYouTubeID => _youtubeID != null;
bool get canSubmitForm => bool get canSubmitForm =>
!_isCreating && _postTextController.text.length > 5 || !_isCreating && _postTextController.text.length > 5 ||
@ -84,7 +84,7 @@ class _PostCreateFormWidgetState extends State<PostCreateFormWidget> {
return PostKind.COUNTDOWN; return PostKind.COUNTDOWN;
else if (hasSurvey) else if (hasSurvey)
return PostKind.SURVEY; return PostKind.SURVEY;
else if (hasYoutTubeID) else if (hasYouTubeID)
return PostKind.YOUTUBE; return PostKind.YOUTUBE;
else else
return PostKind.TEXT; return PostKind.TEXT;