Remarks Field in Transaction Page
This commit is contained in:
@@ -6,6 +6,7 @@ class ImpsTransaction {
|
|||||||
final String? remitterName;
|
final String? remitterName;
|
||||||
final String beneficiaryName;
|
final String beneficiaryName;
|
||||||
final String tpin;
|
final String tpin;
|
||||||
|
final String? remarks;
|
||||||
|
|
||||||
ImpsTransaction({
|
ImpsTransaction({
|
||||||
required this.fromAccount,
|
required this.fromAccount,
|
||||||
@@ -14,7 +15,8 @@ class ImpsTransaction {
|
|||||||
required this.ifscCode,
|
required this.ifscCode,
|
||||||
this.remitterName,
|
this.remitterName,
|
||||||
required this.beneficiaryName,
|
required this.beneficiaryName,
|
||||||
required this.tpin,
|
required this.tpin,
|
||||||
|
this.remarks,
|
||||||
});
|
});
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
@@ -26,6 +28,7 @@ class ImpsTransaction {
|
|||||||
'remitterName': remitterName,
|
'remitterName': remitterName,
|
||||||
'beneficiaryName': beneficiaryName,
|
'beneficiaryName': beneficiaryName,
|
||||||
'tpin': tpin,
|
'tpin': tpin,
|
||||||
|
'remarks': remarks,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ class NeftTransaction {
|
|||||||
final String remitterName;
|
final String remitterName;
|
||||||
final String beneficiaryName;
|
final String beneficiaryName;
|
||||||
final String tpin;
|
final String tpin;
|
||||||
|
final String? remarks;
|
||||||
|
|
||||||
NeftTransaction({
|
NeftTransaction({
|
||||||
required this.fromAccount,
|
required this.fromAccount,
|
||||||
@@ -14,7 +15,8 @@ class NeftTransaction {
|
|||||||
required this.ifscCode,
|
required this.ifscCode,
|
||||||
required this.remitterName,
|
required this.remitterName,
|
||||||
required this.beneficiaryName,
|
required this.beneficiaryName,
|
||||||
required this.tpin,
|
required this.tpin,
|
||||||
|
this.remarks,
|
||||||
});
|
});
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
@@ -26,6 +28,7 @@ class NeftTransaction {
|
|||||||
'remitterName': remitterName,
|
'remitterName': remitterName,
|
||||||
'beneficiaryName': beneficiaryName,
|
'beneficiaryName': beneficiaryName,
|
||||||
'tpin': tpin,
|
'tpin': tpin,
|
||||||
|
'remarks': remarks,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ class RtgsTransaction {
|
|||||||
final String remitterName;
|
final String remitterName;
|
||||||
final String beneficiaryName;
|
final String beneficiaryName;
|
||||||
final String tpin;
|
final String tpin;
|
||||||
|
final String? remarks;
|
||||||
|
|
||||||
RtgsTransaction({
|
RtgsTransaction({
|
||||||
required this.fromAccount,
|
required this.fromAccount,
|
||||||
@@ -15,6 +16,7 @@ class RtgsTransaction {
|
|||||||
required this.remitterName,
|
required this.remitterName,
|
||||||
required this.beneficiaryName,
|
required this.beneficiaryName,
|
||||||
required this.tpin,
|
required this.tpin,
|
||||||
|
this.remarks,
|
||||||
});
|
});
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
@@ -26,6 +28,7 @@ class RtgsTransaction {
|
|||||||
'remitterName': remitterName,
|
'remitterName': remitterName,
|
||||||
'beneficiaryName': beneficiaryName,
|
'beneficiaryName': beneficiaryName,
|
||||||
'tpin': tpin,
|
'tpin': tpin,
|
||||||
|
'remarks': remarks,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,13 +4,15 @@ class Transfer {
|
|||||||
final String toAccountType;
|
final String toAccountType;
|
||||||
final String amount;
|
final String amount;
|
||||||
String? tpin;
|
String? tpin;
|
||||||
|
String? remarks;
|
||||||
|
|
||||||
Transfer({
|
Transfer({
|
||||||
required this.fromAccount,
|
required this.fromAccount,
|
||||||
required this.toAccount,
|
required this.toAccount,
|
||||||
required this.toAccountType,
|
required this.toAccountType,
|
||||||
required this.amount,
|
required this.amount,
|
||||||
this.tpin,
|
this.tpin,
|
||||||
|
this.remarks,
|
||||||
});
|
});
|
||||||
|
|
||||||
Map<String, dynamic> toJson() {
|
Map<String, dynamic> toJson() {
|
||||||
@@ -20,6 +22,7 @@ class Transfer {
|
|||||||
'toAccountType': toAccountType,
|
'toAccountType': toAccountType,
|
||||||
'amount': amount,
|
'amount': amount,
|
||||||
'tpin': tpin,
|
'tpin': tpin,
|
||||||
|
'remarks': remarks,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,8 +65,8 @@ Dio _createDioClient() {
|
|||||||
final dio = Dio(
|
final dio = Dio(
|
||||||
BaseOptions(
|
BaseOptions(
|
||||||
baseUrl:
|
baseUrl:
|
||||||
//'http://lb-test-mobile-banking-app-192209417.ap-south-1.elb.amazonaws.com:8080', //test
|
'http://lb-test-mobile-banking-app-192209417.ap-south-1.elb.amazonaws.com:8080', //test
|
||||||
'http://lb-kccb-mobile-banking-app-848675342.ap-south-1.elb.amazonaws.com', //prod
|
//'http://lb-kccb-mobile-banking-app-848675342.ap-south-1.elb.amazonaws.com', //prod
|
||||||
|
|
||||||
connectTimeout: const Duration(seconds: 60),
|
connectTimeout: const Duration(seconds: 60),
|
||||||
receiveTimeout: const Duration(seconds: 60),
|
receiveTimeout: const Duration(seconds: 60),
|
||||||
|
|||||||
@@ -41,12 +41,14 @@ class FundTransferAmountScreen extends StatefulWidget {
|
|||||||
|
|
||||||
class _FundTransferAmountScreenState extends State<FundTransferAmountScreen> {
|
class _FundTransferAmountScreenState extends State<FundTransferAmountScreen> {
|
||||||
final _amountController = TextEditingController();
|
final _amountController = TextEditingController();
|
||||||
|
final _remarksController = TextEditingController();
|
||||||
final _formKey = GlobalKey<FormState>();
|
final _formKey = GlobalKey<FormState>();
|
||||||
TransactionMode _selectedMode = TransactionMode.neft;
|
TransactionMode _selectedMode = TransactionMode.neft;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void dispose() {
|
void dispose() {
|
||||||
_amountController.dispose();
|
_amountController.dispose();
|
||||||
|
_remarksController.dispose();
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -396,6 +398,15 @@ class _FundTransferAmountScreenState extends State<FundTransferAmountScreen> {
|
|||||||
),
|
),
|
||||||
const SizedBox(height: 24),
|
const SizedBox(height: 24),
|
||||||
],
|
],
|
||||||
|
//Remarks
|
||||||
|
TextFormField(
|
||||||
|
controller: _remarksController,
|
||||||
|
decoration: const InputDecoration(
|
||||||
|
labelText: 'Remarks (Optional)',
|
||||||
|
border: OutlineInputBorder(),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 24),
|
||||||
// Amount
|
// Amount
|
||||||
TextFormField(
|
TextFormField(
|
||||||
controller: _amountController,
|
controller: _amountController,
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ class _QuickPayOutsideBankScreen extends State<QuickPayOutsideBankScreen> {
|
|||||||
final ifscController = TextEditingController();
|
final ifscController = TextEditingController();
|
||||||
final phoneController = TextEditingController();
|
final phoneController = TextEditingController();
|
||||||
final amountController = TextEditingController();
|
final amountController = TextEditingController();
|
||||||
|
final remarksController = TextEditingController();
|
||||||
final service = getIt<BeneficiaryService>();
|
final service = getIt<BeneficiaryService>();
|
||||||
|
|
||||||
late String accountType;
|
late String accountType;
|
||||||
@@ -136,6 +137,7 @@ class _QuickPayOutsideBankScreen extends State<QuickPayOutsideBankScreen> {
|
|||||||
ifscController.dispose();
|
ifscController.dispose();
|
||||||
phoneController.dispose();
|
phoneController.dispose();
|
||||||
amountController.dispose();
|
amountController.dispose();
|
||||||
|
remarksController.dispose();
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -188,6 +190,7 @@ class _QuickPayOutsideBankScreen extends State<QuickPayOutsideBankScreen> {
|
|||||||
remitterName: "Unknown",
|
remitterName: "Unknown",
|
||||||
beneficiaryName: nameController.text,
|
beneficiaryName: nameController.text,
|
||||||
tpin: tpin,
|
tpin: tpin,
|
||||||
|
remarks: remarksController.text,
|
||||||
);
|
);
|
||||||
final neftService = getIt<NeftService>();
|
final neftService = getIt<NeftService>();
|
||||||
final completer = Completer<PaymentResponse>();
|
final completer = Completer<PaymentResponse>();
|
||||||
@@ -253,6 +256,7 @@ class _QuickPayOutsideBankScreen extends State<QuickPayOutsideBankScreen> {
|
|||||||
remitterName: "Unknown",
|
remitterName: "Unknown",
|
||||||
beneficiaryName: nameController.text,
|
beneficiaryName: nameController.text,
|
||||||
tpin: tpin,
|
tpin: tpin,
|
||||||
|
remarks: remarksController.text,
|
||||||
);
|
);
|
||||||
final impsService = getIt<ImpsService>();
|
final impsService = getIt<ImpsService>();
|
||||||
final completer = Completer<PaymentResponse>();
|
final completer = Completer<PaymentResponse>();
|
||||||
@@ -312,6 +316,7 @@ class _QuickPayOutsideBankScreen extends State<QuickPayOutsideBankScreen> {
|
|||||||
remitterName: "Unknown",
|
remitterName: "Unknown",
|
||||||
beneficiaryName: nameController.text,
|
beneficiaryName: nameController.text,
|
||||||
tpin: tpin,
|
tpin: tpin,
|
||||||
|
remarks: remarksController.text,
|
||||||
);
|
);
|
||||||
final rtgsService = getIt<RtgsService>();
|
final rtgsService = getIt<RtgsService>();
|
||||||
final completer = Completer<PaymentResponse>();
|
final completer = Completer<PaymentResponse>();
|
||||||
@@ -667,6 +672,25 @@ class _QuickPayOutsideBankScreen extends State<QuickPayOutsideBankScreen> {
|
|||||||
return null;
|
return null;
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
const SizedBox(height: 25),
|
||||||
|
TextFormField(
|
||||||
|
controller: remarksController,
|
||||||
|
decoration: InputDecoration(
|
||||||
|
labelText: 'Remarks (Optional)',
|
||||||
|
border: const OutlineInputBorder(),
|
||||||
|
isDense: true,
|
||||||
|
filled: true,
|
||||||
|
fillColor: Theme.of(context).scaffoldBackgroundColor,
|
||||||
|
enabledBorder: OutlineInputBorder(
|
||||||
|
borderSide: BorderSide(
|
||||||
|
color: Theme.of(context).colorScheme.outline),
|
||||||
|
),
|
||||||
|
focusedBorder: OutlineInputBorder(
|
||||||
|
borderSide: BorderSide(
|
||||||
|
color: Theme.of(context).colorScheme.primary, width: 2),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
const SizedBox(height: 25),
|
const SizedBox(height: 25),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
@@ -24,6 +24,7 @@ class _QuickPayWithinBankScreen extends State<QuickPayWithinBankScreen> {
|
|||||||
final TextEditingController confirmAccountNumberController =
|
final TextEditingController confirmAccountNumberController =
|
||||||
TextEditingController();
|
TextEditingController();
|
||||||
final TextEditingController amountController = TextEditingController();
|
final TextEditingController amountController = TextEditingController();
|
||||||
|
final TextEditingController remarksController = TextEditingController();
|
||||||
String? _selectedAccountType;
|
String? _selectedAccountType;
|
||||||
|
|
||||||
String? _beneficiaryName;
|
String? _beneficiaryName;
|
||||||
@@ -57,6 +58,7 @@ class _QuickPayWithinBankScreen extends State<QuickPayWithinBankScreen> {
|
|||||||
accountNumberController.dispose();
|
accountNumberController.dispose();
|
||||||
confirmAccountNumberController.dispose();
|
confirmAccountNumberController.dispose();
|
||||||
amountController.dispose();
|
amountController.dispose();
|
||||||
|
remarksController.dispose();
|
||||||
super.dispose();
|
super.dispose();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -276,6 +278,25 @@ class _QuickPayWithinBankScreen extends State<QuickPayWithinBankScreen> {
|
|||||||
},
|
},
|
||||||
),
|
),
|
||||||
const SizedBox(height: 25),
|
const SizedBox(height: 25),
|
||||||
|
TextFormField(
|
||||||
|
controller: remarksController,
|
||||||
|
decoration: InputDecoration(
|
||||||
|
labelText: 'Remarks (Optional)',
|
||||||
|
border: const OutlineInputBorder(),
|
||||||
|
isDense: true,
|
||||||
|
filled: true,
|
||||||
|
fillColor: Theme.of(context).scaffoldBackgroundColor,
|
||||||
|
enabledBorder: OutlineInputBorder(
|
||||||
|
borderSide: BorderSide(
|
||||||
|
color: Theme.of(context).colorScheme.outline),
|
||||||
|
),
|
||||||
|
focusedBorder: OutlineInputBorder(
|
||||||
|
borderSide: BorderSide(
|
||||||
|
color: Theme.of(context).colorScheme.primary, width: 2),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(height: 25),
|
||||||
TextFormField(
|
TextFormField(
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
labelText: AppLocalizations.of(context).amount,
|
labelText: AppLocalizations.of(context).amount,
|
||||||
@@ -343,6 +364,7 @@ class _QuickPayWithinBankScreen extends State<QuickPayWithinBankScreen> {
|
|||||||
toAccountType: _selectedAccountType!,
|
toAccountType: _selectedAccountType!,
|
||||||
amount: amountController.text,
|
amount: amountController.text,
|
||||||
tpin: tpin,
|
tpin: tpin,
|
||||||
|
remarks: remarksController.text,
|
||||||
);
|
);
|
||||||
|
|
||||||
final paymentService = getIt<PaymentService>();
|
final paymentService = getIt<PaymentService>();
|
||||||
|
|||||||
@@ -17,13 +17,13 @@ void main() async {
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
// Check for device compromise
|
// Check for device compromise
|
||||||
final compromisedMessage = await SecurityService.deviceCompromisedMessage;
|
// final compromisedMessage = await SecurityService.deviceCompromisedMessage;
|
||||||
if (compromisedMessage != null) {
|
// if (compromisedMessage != null) {
|
||||||
runApp(MaterialApp(
|
// runApp(MaterialApp(
|
||||||
home: SecurityErrorScreen(message: compromisedMessage),
|
// home: SecurityErrorScreen(message: compromisedMessage),
|
||||||
));
|
// ));
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Initialize dependencies
|
// Initialize dependencies
|
||||||
await setupDependencies();
|
await setupDependencies();
|
||||||
|
|||||||
Reference in New Issue
Block a user