Compare commits
2 Commits
1ce957b21e
...
e5aaf103da
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e5aaf103da | ||
|
|
babe51c40c |
@@ -326,8 +326,8 @@
|
|||||||
"securityTitle5": "كيف يمكنني الحصول على الدعم إذا كان لدي أسئلة أو واجهت مشاكل؟",
|
"securityTitle5": "كيف يمكنني الحصول على الدعم إذا كان لدي أسئلة أو واجهت مشاكل؟",
|
||||||
"securityDesc5": "لدينا فريق دعم عملاء مخصص لمساعدتك. يمكنك الاتصال بنا من خلال قسم الاتصال داخل التطبيق، أو عبر البريد الإلكتروني، أو الهاتف. نسعى لتقديم دعم سريع ومفيد لمعالجة أي أسئلة أو مخاوف قد تكون لديك.",
|
"securityDesc5": "لدينا فريق دعم عملاء مخصص لمساعدتك. يمكنك الاتصال بنا من خلال قسم الاتصال داخل التطبيق، أو عبر البريد الإلكتروني، أو الهاتف. نسعى لتقديم دعم سريع ومفيد لمعالجة أي أسئلة أو مخاوف قد تكون لديك.",
|
||||||
"websiteText" : "موقع إلكتروني",
|
"websiteText" : "موقع إلكتروني",
|
||||||
"toRestorePasswordYouWillBeLoggedOut" : "لاستعادة كلمة المرور، سيتم تسجيل خروجك من التطبيق"
|
"toRestorePasswordYouWillBeLoggedOut" : "لاستعادة كلمة المرور، سيتم تسجيل خروجك من التطبيق",
|
||||||
|
"noDataAvailable" : "لا تتوافر بيانات"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -326,7 +326,8 @@
|
|||||||
"securityTitle5" : "How can I get support if I have questions or encounter issues?",
|
"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.",
|
"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",
|
"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"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -411,4 +411,5 @@ class AppText {
|
|||||||
static const String investmentConfirmationText = "investmentConfirmationText";
|
static const String investmentConfirmationText = "investmentConfirmationText";
|
||||||
static const String enterAmountText = "enterAmountText";
|
static const String enterAmountText = "enterAmountText";
|
||||||
static const String pleaseEnterAmountText = "pleaseEnterAmountText";
|
static const String pleaseEnterAmountText = "pleaseEnterAmountText";
|
||||||
|
static const String noDataAvailable = "noDataAvailable";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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/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/domain/model/closed_io_model.dart';
|
||||||
import 'package:tanami_app/features/MainScreens/Invest/presentation/widgets/kyc_card.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 '../../../../../Api_Helper/base_manager.dart';
|
||||||
import '../../../../../core/utils/language/localizations_delegate.dart';
|
import '../../../../../core/utils/language/localizations_delegate.dart';
|
||||||
@@ -103,6 +104,7 @@ class _AvailableItemsScreenState extends State<AvailableItemsScreen> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
var localizations = AppLocalizations.of(context);
|
||||||
context.read<TabBloc>().add(LoadAvailableItems());
|
context.read<TabBloc>().add(LoadAvailableItems());
|
||||||
|
|
||||||
return BlocBuilder<TabBloc, TabState>(
|
return BlocBuilder<TabBloc, TabState>(
|
||||||
@@ -110,7 +112,10 @@ class _AvailableItemsScreenState extends State<AvailableItemsScreen> {
|
|||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return const Center(child: CircularProgressIndicator());
|
return const Center(child: CircularProgressIndicator());
|
||||||
} else if (availableIOModel.data!.rows!.isEmpty) {
|
} 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 {
|
} else {
|
||||||
return ListView.builder(
|
return ListView.builder(
|
||||||
itemCount: availableIOModel.data!.rows!.length + 1,
|
itemCount: availableIOModel.data!.rows!.length + 1,
|
||||||
@@ -205,6 +210,7 @@ class _ClosedItemsScreenState extends State<ClosedItemsScreen> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
var localizations = AppLocalizations.of(context);
|
||||||
context.read<TabBloc>().add(LoadClosedItems());
|
context.read<TabBloc>().add(LoadClosedItems());
|
||||||
|
|
||||||
return BlocBuilder<TabBloc, TabState>(
|
return BlocBuilder<TabBloc, TabState>(
|
||||||
@@ -212,7 +218,10 @@ class _ClosedItemsScreenState extends State<ClosedItemsScreen> {
|
|||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return const Center(child: CircularProgressIndicator());
|
return const Center(child: CircularProgressIndicator());
|
||||||
} else if (closedIOModel.data!.rows!.isEmpty) {
|
} 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 {
|
} else {
|
||||||
return ListView.builder(
|
return ListView.builder(
|
||||||
itemCount: closedIOModel.data!.rows!.length,
|
itemCount: closedIOModel.data!.rows!.length,
|
||||||
|
|||||||
Reference in New Issue
Block a user