diff --git a/assets/language/ar.json b/assets/language/ar.json index 5e5c41f..fc32c96 100644 --- a/assets/language/ar.json +++ b/assets/language/ar.json @@ -326,8 +326,8 @@ "securityTitle5": "كيف يمكنني الحصول على الدعم إذا كان لدي أسئلة أو واجهت مشاكل؟", "securityDesc5": "لدينا فريق دعم عملاء مخصص لمساعدتك. يمكنك الاتصال بنا من خلال قسم الاتصال داخل التطبيق، أو عبر البريد الإلكتروني، أو الهاتف. نسعى لتقديم دعم سريع ومفيد لمعالجة أي أسئلة أو مخاوف قد تكون لديك.", "websiteText" : "موقع إلكتروني", - "toRestorePasswordYouWillBeLoggedOut" : "لاستعادة كلمة المرور، سيتم تسجيل خروجك من التطبيق" - + "toRestorePasswordYouWillBeLoggedOut" : "لاستعادة كلمة المرور، سيتم تسجيل خروجك من التطبيق", + "noDataAvailable" : "لا تتوافر بيانات" } \ No newline at end of file diff --git a/assets/language/en.json b/assets/language/en.json index 0a77e26..35482ad 100644 --- a/assets/language/en.json +++ b/assets/language/en.json @@ -326,7 +326,8 @@ "securityTitle5" : "How can I get support if I have questions or encounter issues?", "securityDesc5" : "We have a dedicated customer support team available to assist you. You can reach out to us through our in-app contact section, email, or phone. We strive to provide timely and helpful support to address any questions or concerns you may have.", "websiteText" : "website", - "toRestorePasswordYouWillBeLoggedOut" : "To restore password you will be logged out of the app" + "toRestorePasswordYouWillBeLoggedOut" : "To restore password you will be logged out of the app", + "noDataAvailable" : "No Data Available" } \ No newline at end of file diff --git a/lib/core/styles/app_text.dart b/lib/core/styles/app_text.dart index 59e666d..f68594b 100644 --- a/lib/core/styles/app_text.dart +++ b/lib/core/styles/app_text.dart @@ -411,4 +411,5 @@ class AppText { static const String investmentConfirmationText = "investmentConfirmationText"; static const String enterAmountText = "enterAmountText"; static const String pleaseEnterAmountText = "pleaseEnterAmountText"; + static const String noDataAvailable = "noDataAvailable"; } diff --git a/lib/features/MainScreens/Invest/presentation/pages/invest_layout.dart b/lib/features/MainScreens/Invest/presentation/pages/invest_layout.dart index ed6f48f..d9a9ac9 100644 --- a/lib/features/MainScreens/Invest/presentation/pages/invest_layout.dart +++ b/lib/features/MainScreens/Invest/presentation/pages/invest_layout.dart @@ -7,6 +7,7 @@ import 'package:tanami_app/core/styles/app_color.dart'; import 'package:tanami_app/core/styles/app_text.dart'; import 'package:tanami_app/features/MainScreens/Invest/domain/model/closed_io_model.dart'; import 'package:tanami_app/features/MainScreens/Invest/presentation/widgets/kyc_card.dart'; +import 'package:tanami_app/shared/components/text_widget.dart'; import '../../../../../Api_Helper/base_manager.dart'; import '../../../../../core/utils/language/localizations_delegate.dart'; @@ -103,6 +104,7 @@ class _AvailableItemsScreenState extends State { @override Widget build(BuildContext context) { + var localizations = AppLocalizations.of(context); context.read().add(LoadAvailableItems()); return BlocBuilder( @@ -110,7 +112,10 @@ class _AvailableItemsScreenState extends State { if (isLoading) { return const Center(child: CircularProgressIndicator()); } else if (availableIOModel.data!.rows!.isEmpty) { - return const Center(child: Text('No available items.')); + return Center( + child: TextWidget().text15W700( + localizations.translate(AppText.noDataAvailable), + clr: AppColor.plainBlack)); } else { return ListView.builder( itemCount: availableIOModel.data!.rows!.length + 1, @@ -205,6 +210,7 @@ class _ClosedItemsScreenState extends State { @override Widget build(BuildContext context) { + var localizations = AppLocalizations.of(context); context.read().add(LoadClosedItems()); return BlocBuilder( @@ -212,7 +218,10 @@ class _ClosedItemsScreenState extends State { if (isLoading) { return const Center(child: CircularProgressIndicator()); } else if (closedIOModel.data!.rows!.isEmpty) { - return const Center(child: Text('No available items.')); + return Center( + child: TextWidget().text15W700( + localizations.translate(AppText.noDataAvailable), + clr: AppColor.plainBlack)); } else { return ListView.builder( itemCount: closedIOModel.data!.rows!.length,