Reeverted LocaleKeys

faiz_disclosure
Faiz Hashmi 1 year ago
parent b821026063
commit 5921f60825

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

@ -820,7 +820,7 @@ class InfoFragment extends StatelessWidget {
ItemDetailGrid( ItemDetailGrid(
ItemDetailViewCol( ItemDetailViewCol(
LocaleKeys.poNumber.tr(), data.purchaseOrdersList![0].poNumber ?? ""), LocaleKeys.poNumber.tr(), data.purchaseOrdersList![0].poNumber ?? ""),
ItemDetailViewCol("LocaleKeys.pOAmount.tr()", ItemDetailViewCol(LocaleKeys.pOAmount.tr(),
data.purchaseOrdersList![0].poAmount.toString() ?? ""), data.purchaseOrdersList![0].poAmount.toString() ?? ""),
), ),
ItemDetailGrid( ItemDetailGrid(

Loading…
Cancel
Save