diff --git a/lib/ui/chat/create_group.dart b/lib/ui/chat/create_group.dart index 0790a64..dfc83ae 100644 --- a/lib/ui/chat/create_group.dart +++ b/lib/ui/chat/create_group.dart @@ -212,7 +212,7 @@ class _CreateGroupBottomSheetState extends State { 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 { 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 { 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? mainUsers = []; ChatUser admin = ChatUser.fromJson(AppState().chatDetails!.response!.toJson()); diff --git a/lib/ui/work_list/worklist_fragments/info_fragments.dart b/lib/ui/work_list/worklist_fragments/info_fragments.dart index 0540f4d..1351126 100644 --- a/lib/ui/work_list/worklist_fragments/info_fragments.dart +++ b/lib/ui/work_list/worklist_fragments/info_fragments.dart @@ -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(