2 Commits

Author SHA1 Message Date
e5a2d0d1f1 Localization Chamges #2 2025-08-19 11:18:25 +05:30
842eef2cc7 Localization Chamges #2 2025-08-19 11:13:05 +05:30
4 changed files with 18 additions and 15 deletions

View File

@@ -2,10 +2,10 @@ import 'package:dio/dio.dart';
import 'package:kmobile/data/models/imps_response.dart'; import 'package:kmobile/data/models/imps_response.dart';
import 'package:kmobile/data/models/imps_transaction.dart'; import 'package:kmobile/data/models/imps_transaction.dart';
class RtgsService { class ImpsService {
final Dio _dio; final Dio _dio;
RtgsService(this._dio); ImpsService(this._dio);
Future<ImpsResponse> processImpsTransaction( Future<ImpsResponse> processImpsTransaction(
ImpsTransaction transaction) async { ImpsTransaction transaction) async {
@@ -29,3 +29,5 @@ class RtgsService {
} }
} }
} }

View File

@@ -1,5 +1,4 @@
import 'dart:developer'; import 'dart:developer';
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:kmobile/data/models/payment_response.dart'; import 'package:kmobile/data/models/payment_response.dart';
import 'package:kmobile/data/models/transfer.dart'; import 'package:kmobile/data/models/transfer.dart';
@@ -39,3 +38,4 @@ class PaymentService {
} }
} }
} }

View File

@@ -11,17 +11,16 @@ class TransactionDetailsScreen extends StatelessWidget {
Widget build(BuildContext context) { Widget build(BuildContext context) {
final bool isCredit = transaction.type?.toUpperCase() == 'CR'; final bool isCredit = transaction.type?.toUpperCase() == 'CR';
// Future<void> _shareScreenshot() async { // Future<void> _shareScreenshot() async {
// try { // try {
// RenderRepaintBoundary boundary = // RenderRepaintBoundary boundary =
// _shareKey.currentContext!.findRenderObject() as RenderRepaintBoundary; // _shareKey.currentContext!.findRenderObject() as RenderRepaintBoundary;
// ui.Image image = await boundary.toImage(pixelRatio: 3.0); // ui.Image image = await boundary.toImage(pixelRatio: 3.0);
// ByteData? byteData = await image.toByteData(format: ui.ImageByteFormat.png); // ByteData? byteData = await image.toByteData(format: ui.ImageByteFormat.png);
// Uint8List pngBytes = byteData!.buffer.asUint8List(); // Uint8List pngBytes = byteData!.buffer.asUint8List();
// final tempDir = await getTemporaryDirectory();
// final tempDir = await getTemporaryDirectory(); // final file = await File('${tempDir.path}/payment_result.png').create();
// final file = await File('${tempDir.path}/payment_result.png').create(); // await file.writeAsBytes(pngBytes);
// await file.writeAsBytes(pngBytes);
// await Share.shareXFiles( // await Share.shareXFiles(
// [XFile(file.path)], // [XFile(file.path)],
@@ -166,3 +165,5 @@ class TransactionDetailsScreen extends StatelessWidget {
); );
} }
} }

View File

@@ -29,4 +29,4 @@ class SecureStorage {
Future<void> deleteAll() async { Future<void> deleteAll() async {
await _storage.deleteAll(); await _storage.deleteAll();
} }
} }