|
|
|
|
@ -212,7 +212,7 @@ class _CreateGroupBottomSheetState extends State<CreateGroupBottomSheet> {
|
|
|
|
|
height: 35,
|
|
|
|
|
child: CheckboxListTile(
|
|
|
|
|
contentPadding: EdgeInsets.zero,
|
|
|
|
|
title: "LocaleKeys.videoCall.tr()".toText10(),
|
|
|
|
|
title: LocaleKeys.videoCall.tr().toText10(),
|
|
|
|
|
checkboxShape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10)),
|
|
|
|
|
value: isVideoCall,
|
|
|
|
|
onChanged: (bool? newValue) {
|
|
|
|
|
@ -261,8 +261,8 @@ class _CreateGroupBottomSheetState extends State<CreateGroupBottomSheet> {
|
|
|
|
|
11.height,
|
|
|
|
|
Row(
|
|
|
|
|
children: [
|
|
|
|
|
radioOption(widget.fromChat ? "LocaleKeys.userId.tr()" : LocaleKeys.name.tr(), 0, _selectedSearchIndex),
|
|
|
|
|
radioOption("LocaleKeys.userName.tr()", 1, _selectedSearchIndex),
|
|
|
|
|
radioOption(widget.fromChat ? LocaleKeys.userId.tr() : LocaleKeys.name.tr(), 0, _selectedSearchIndex),
|
|
|
|
|
radioOption(LocaleKeys.userName.tr(), 1, _selectedSearchIndex),
|
|
|
|
|
radioOption(LocaleKeys.email.tr(), 2, _selectedSearchIndex),
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
@ -589,9 +589,9 @@ class _CreateGroupBottomSheetState extends State<CreateGroupBottomSheet> {
|
|
|
|
|
RegExp validCharacters = RegExp(r'^[a-zA-Z0-9_\-=@,\.;]+$');
|
|
|
|
|
if (!validCharacters.hasMatch(groupName)) {
|
|
|
|
|
// Utils.showToast(LocaleKeys.enterGroupName.tr());
|
|
|
|
|
Utils.showToast("LocaleKeys.enterGroupName.tr()");
|
|
|
|
|
Utils.showToast(LocaleKeys.enterGroupName.tr());
|
|
|
|
|
} else if (groupName.length < 10) {
|
|
|
|
|
Utils.showToast("LocaleKeys.groupNameshouldbe.tr()");
|
|
|
|
|
Utils.showToast(LocaleKeys.groupNameshouldbe.tr());
|
|
|
|
|
} else {
|
|
|
|
|
List<ChatUser>? mainUsers = [];
|
|
|
|
|
ChatUser admin = ChatUser.fromJson(AppState().chatDetails!.response!.toJson());
|
|
|
|
|
|