This commit is contained in:
Hillel Coren 2020-10-21 15:38:08 +03:00
parent c6250c8e64
commit fc4fde711d
2 changed files with 3 additions and 7 deletions

View File

@ -11,6 +11,7 @@ import 'package:invoiceninja_flutter/utils/formatting.dart';
import 'package:invoiceninja_flutter/utils/localization.dart';
import 'package:invoiceninja_flutter/ui/app/form_card.dart';
import 'package:invoiceninja_flutter/redux/static/static_selectors.dart';
import 'package:invoiceninja_flutter/utils/money.dart';
class ExpenseEditSettings extends StatefulWidget {
const ExpenseEditSettings({
@ -82,13 +83,12 @@ class ExpenseEditSettingsState extends State<ExpenseEditSettings> {
}
void _setCurrency(CurrencyEntity currency) {
/*
final viewModel = widget.viewModel;
final expense = viewModel.expense;
final exchangeRate = currency == null
? 0.0
: getExchangeRate(context,
: getExchangeRate(viewModel.state.staticState.currencyMap,
fromCurrencyId: expense.expenseCurrencyId,
toCurrencyId: currency.id);
@ -99,7 +99,6 @@ class ExpenseEditSettingsState extends State<ExpenseEditSettings> {
_exchangeRateController.text = formatNumber(exchangeRate, context,
formatNumberType: FormatNumberType.inputAmount);
});
*/
}
@override
@ -247,6 +246,7 @@ class ExpenseEditSettingsState extends State<ExpenseEditSettings> {
entityId: expense.invoiceCurrencyId,
onSelected: (SelectableEntity currency) =>
_setCurrency(currency),
allowClearing: true,
),
DecoratedFormField(
key: ValueKey('__${expense.invoiceCurrencyId}__'),

View File

@ -57,10 +57,6 @@ class _ExpenseViewDetailsState extends State<ExpenseViewDetails> {
};
final listTiles = <Widget>[
Container(
color: Theme.of(context).backgroundColor,
height: 12.0,
),
FieldGrid(fields),
Divider(
height: 1.0,