From cd367d79676861a2a66b74adb1e6e5a4a72add16 Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Tue, 22 Oct 2019 10:34:19 +0300 Subject: [PATCH] Settings --- lib/ui/company_gateway/edit/company_gateway_edit.dart | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/ui/company_gateway/edit/company_gateway_edit.dart b/lib/ui/company_gateway/edit/company_gateway_edit.dart index 0e4c635f7..230c9921a 100644 --- a/lib/ui/company_gateway/edit/company_gateway_edit.dart +++ b/lib/ui/company_gateway/edit/company_gateway_edit.dart @@ -455,7 +455,6 @@ class _LimitEditorState extends State { _enableMax = true; } - _minController.text = formatNumber( (companyGateway.minLimit ?? 0).toDouble(), context, formatNumberType: FormatNumberType.input); @@ -608,10 +607,17 @@ class _FeesEditorState extends State { _capController, ]; + final companyGateway = widget.companyGateway; + _controllers .forEach((dynamic controller) => controller.removeListener(_onChanged)); - // TODO + _amountController.text = formatNumber(companyGateway.feeAmount, context, + formatNumberType: FormatNumberType.input); + _percentController.text = formatNumber(companyGateway.feePercent, context, + formatNumberType: FormatNumberType.input); + _capController.text = formatNumber(companyGateway.feeCap, context, + formatNumberType: FormatNumberType.input); _controllers .forEach((dynamic controller) => controller.addListener(_onChanged));