added zwg support
This commit is contained in:
@@ -259,6 +259,12 @@ class _PayScreenState extends State<PayScreen> with TickerProviderStateMixin {
|
||||
.formData
|
||||
.creditAccount,
|
||||
),
|
||||
_buildDetailRow(
|
||||
icon: Icons.monetization_on,
|
||||
label: "Currency",
|
||||
value:
|
||||
transactionController.model.currency,
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 20),
|
||||
@@ -643,7 +649,7 @@ class _PayScreenState extends State<PayScreen> with TickerProviderStateMixin {
|
||||
const SizedBox(height: 5),
|
||||
DropdownButtonHideUnderline(
|
||||
child: DropdownButtonFormField<String>(
|
||||
initialValue: controller.model.selectedProduct?.uid,
|
||||
initialValue: transactionController.model.selectedProduct?.name,
|
||||
isExpanded: true,
|
||||
icon: const Icon(Icons.arrow_drop_down),
|
||||
decoration: InputDecoration(
|
||||
@@ -661,10 +667,10 @@ class _PayScreenState extends State<PayScreen> with TickerProviderStateMixin {
|
||||
DropdownMenuItem(child: Text("Select Product")),
|
||||
...controller.model.products.map(
|
||||
(e) => DropdownMenuItem<String>(
|
||||
value: e.uid,
|
||||
value: e.name,
|
||||
child: Text(
|
||||
'${e.displayName} - '
|
||||
'${transactionController.model.formData.debitCurrency}${e.defaultAmount}',
|
||||
'${transactionController.model.currency}${e.defaultAmount}',
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -718,7 +724,7 @@ class _PayScreenState extends State<PayScreen> with TickerProviderStateMixin {
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Text(
|
||||
"TRANSACTION DETAILS",
|
||||
"PROVIDER DETAILS",
|
||||
style: TextStyle(
|
||||
fontSize: 13,
|
||||
fontWeight: FontWeight.w700,
|
||||
|
||||
Reference in New Issue
Block a user