1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-25 22:39:22 +00:00

Can change group URL

This commit is contained in:
Pierre HUBERT 2020-05-01 20:19:22 +02:00
parent 8f0f50d0e4
commit 971210e7e8
2 changed files with 14 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import 'group.dart';
class AdvancedGroupInfo extends Group implements LikeElement {
final int timeCreate;
final String description;
final String url;
String url;
int likes;
bool userLike;

View File

@ -5,6 +5,7 @@ import 'package:comunic/ui/widgets/async_screen_widget.dart';
import 'package:comunic/ui/widgets/comunic_back_button_widget.dart';
import 'package:comunic/ui/widgets/safe_state.dart';
import 'package:comunic/ui/widgets/settings/text_settings_edit_tile.dart';
import 'package:comunic/utils/input_utils.dart';
import 'package:comunic/utils/intl_utils.dart';
import 'package:comunic/utils/ui_utils.dart';
import 'package:flutter/material.dart';
@ -109,6 +110,18 @@ class _GroupSettingsScreenState extends SafeState<GroupSettingsScreen> {
_updateSettings();
},
),
// Group URL
TextEditSettingsTile(
title: tr("Group URL (optional)"),
currValue: _groupSettings.url,
checkInput: validateUrl,
allowEmptyValues: true,
onChanged: (s) {
_groupSettings.url = s;
_updateSettings();
},
)
],
);
}