io api settings api
This commit is contained in:
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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<AvailableItemsScreen> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var localizations = AppLocalizations.of(context);
|
||||
context.read<TabBloc>().add(LoadAvailableItems());
|
||||
|
||||
return BlocBuilder<TabBloc, TabState>(
|
||||
@@ -110,7 +112,10 @@ class _AvailableItemsScreenState extends State<AvailableItemsScreen> {
|
||||
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<ClosedItemsScreen> {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
var localizations = AppLocalizations.of(context);
|
||||
context.read<TabBloc>().add(LoadClosedItems());
|
||||
|
||||
return BlocBuilder<TabBloc, TabState>(
|
||||
@@ -212,7 +218,10 @@ class _ClosedItemsScreenState extends State<ClosedItemsScreen> {
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user