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:
parent
8f0f50d0e4
commit
971210e7e8
@ -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;
|
||||
|
||||
|
@ -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();
|
||||
},
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user