diff --git a/lib/helpers/groups_helper.dart b/lib/helpers/groups_helper.dart index 494405d..7a6227a 100644 --- a/lib/helpers/groups_helper.dart +++ b/lib/helpers/groups_helper.dart @@ -257,7 +257,7 @@ class GroupsHelper { virtualDirectory: nullToEmpty(map["virtual_directory"]), following: map["following"], timeCreate: map["time_create"], - description: map["description"], + description: nullToEmpty(map["description"]), url: nullToEmpty(map["url"]), likes: map["number_likes"], userLike: map["is_liking"], diff --git a/lib/models/advanced_group_info.dart b/lib/models/advanced_group_info.dart index ee60b16..2eacca2 100644 --- a/lib/models/advanced_group_info.dart +++ b/lib/models/advanced_group_info.dart @@ -10,7 +10,7 @@ import 'group.dart'; class AdvancedGroupInfo extends Group implements LikeElement { final int timeCreate; - final String description; + String description; String url; int likes; bool userLike; diff --git a/lib/ui/screens/group_settings_screen.dart b/lib/ui/screens/group_settings_screen.dart index ae8c8ac..7831ba2 100644 --- a/lib/ui/screens/group_settings_screen.dart +++ b/lib/ui/screens/group_settings_screen.dart @@ -121,7 +121,19 @@ class _GroupSettingsScreenState extends SafeState { _groupSettings.url = s; _updateSettings(); }, - ) + ), + + // Group description + TextEditSettingsTile( + title: tr("Group description (optional)"), + currValue: _groupSettings.description, + maxLines: 3, + maxLength: 255, + allowEmptyValues: true, + onChanged: (s) { + _groupSettings.description = s; + _updateSettings(); + }), ], ); }