Reeverted LocaleKeys

faiz_disclosure
Faiz Hashmi 1 year ago
parent b821026063
commit 5921f60825

@ -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());

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

Loading…
Cancel
Save